blob: b9128c2716e87b3234668a5b60c44b0944c22426 [file] [log] [blame]
Erich Keaneebba5922017-07-21 22:37:03 +00001//===--- 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
17using namespace clang;
18using namespace clang::targets;
19
20ArrayRef<const char *> PNaClTargetInfo::getGCCRegNames() const { return None; }
21
22ArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const {
23 return None;
24}
25
26void PNaClTargetInfo::getArchDefines(const LangOptions &Opts,
27 MacroBuilder &Builder) const {
28 Builder.defineMacro("__le32__");
29 Builder.defineMacro("__pnacl__");
30}