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 }
31