diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 02:45:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 02:45:11 +0000 |
commit | 303e2c2f1f11b8f11c2dc222465eec353d9218c7 (patch) | |
tree | bb537292732baad921e08611db15f814eb27769a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d83be33cc08901e50eff70528bf99e9975b0e9a1 (diff) | |
download | bcm5719-llvm-303e2c2f1f11b8f11c2dc222465eec353d9218c7.tar.gz bcm5719-llvm-303e2c2f1f11b8f11c2dc222465eec353d9218c7.zip |
Add dummy Mac Objective-C runtime interface.
- Not currently accessible and completely non-functional.
llvm-svn: 54624
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d17a6c88e41..cd8c90f921e 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -34,12 +34,17 @@ using namespace CodeGen; CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO, llvm::Module &M, const llvm::TargetData &TD, - Diagnostic &diags, bool GenerateDebugInfo) + Diagnostic &diags, bool GenerateDebugInfo, + bool UseMacObjCRuntime) : Context(C), Features(LO), TheModule(M), TheTargetData(TD), Diags(diags), Types(C, M, TD), MemCpyFn(0), MemMoveFn(0), MemSetFn(0), CFConstantStringClassRef(0) { //TODO: Make this selectable at runtime - Runtime = CreateObjCRuntime(*this); + if (UseMacObjCRuntime) { + Runtime = CreateMacObjCRuntime(*this); + } else { + Runtime = CreateGNUObjCRuntime(*this); + } // If debug info generation is enabled, create the CGDebugInfo object. DebugInfo = GenerateDebugInfo ? new CGDebugInfo(this) : 0; |