diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/TargetInfo.h | 5 | ||||
-rw-r--r-- | include/clang/CodeGen/ModuleBuilder.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index 334f87851d..f766f9e26b 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -218,6 +218,11 @@ public: getLongLongInfo(Size, Align, Loc); return static_cast<unsigned>(Size); } + + const char *getTargetTriple() { + // FIXME ! + return "i686-apple-darwin9"; + } private: void ComputeWCharInfo(SourceLocation Loc); }; diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h index 0b1ae476ed..96b0f59b8e 100644 --- a/include/clang/CodeGen/ModuleBuilder.h +++ b/include/clang/CodeGen/ModuleBuilder.h @@ -16,6 +16,7 @@ namespace llvm { class Module; + class TargetData; } namespace clang { @@ -29,7 +30,8 @@ namespace CodeGen { typedef void BuilderTy; /// Init - Create an ModuleBuilder with the specified ASTContext. - BuilderTy *Init(ASTContext &Context, llvm::Module &M); + BuilderTy *Init(ASTContext &Context, llvm::Module &M, + const llvm::TargetData &TD); /// CodeGenFunction - Convert the AST node for a FunctionDecl into LLVM. /// |