clang  6.0.0svn
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"
16 
17 using namespace clang;
18 using namespace clang::targets;
19 
21 
23  return None;
24 }
25 
27  MacroBuilder &Builder) const {
28  Builder.defineMacro("__le32__");
29  Builder.defineMacro("__pnacl__");
30 }
Defines the clang::MacroBuilder utility class.
void getArchDefines(const LangOptions &Opts, MacroBuilder &Builder) const
Definition: PNaCl.cpp:26
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:48
ArrayRef< const char * > getGCCRegNames() const override
Definition: PNaCl.cpp:20
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
Definition: PNaCl.cpp:22
Dataflow Directional Tag Classes.
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