clang 8.0.0

PNaCl.cpp
Go to the documentation of this file.
1 //===--- PNaCl.cpp - Implement PNaCl target feature support ---------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements PNaCl TargetInfo objects.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "PNaCl.h"
15 #include "clang/Basic/MacroBuilder.h"
16
17 using namespace clang;
18 using namespace clang::targets;
19
20 ArrayRef<const char *> PNaClTargetInfo::getGCCRegNames() const { return None; }
21
22 ArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const {
23 return None;
24 }
25
26 void PNaClTargetInfo::getArchDefines(const LangOptions &Opts,
27 MacroBuilder &Builder) const {
28 Builder.defineMacro("__le32__");
29 Builder.defineMacro("__pnacl__");
30 }
MacroBuilder.h
Defines the clang::MacroBuilder utility class.
clang::targets
Definition: AArch64.h:22
PNaCl.h
clang::targets::PNaClTargetInfo::getArchDefines
void getArchDefines(const LangOptions &Opts, MacroBuilder &Builder) const
Definition: PNaCl.cpp:26
clang::LangOptions
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:50
clang::targets::PNaClTargetInfo::getGCCRegNames
ArrayRef< const char * > getGCCRegNames() const override
Definition: PNaCl.cpp:20
llvm::ArrayRef
Definition: LLVM.h:32
clang::targets::PNaClTargetInfo::getGCCRegAliases
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
Definition: PNaCl.cpp:22
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::MacroBuilder
Definition: MacroBuilder.h:24
clang::MacroBuilder::defineMacro
void defineMacro(const Twine &Name, const Twine &Value="1")
Append a #define line for macro of the form "\#define Name Value\n".
Definition: MacroBuilder.h:30