diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 21:35:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 21:35:06 +0000 |
commit | 3ad53483fb706bce1f50c363a38a8dfa242e1ace (patch) | |
tree | fca092c8062c98360f0bbb7bf2c6d5812dbf90eb /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ec9e1a60ad3dd54f4e362247783cba2d72b36f2b (diff) | |
download | bcm5719-llvm-3ad53483fb706bce1f50c363a38a8dfa242e1ace.tar.gz bcm5719-llvm-3ad53483fb706bce1f50c363a38a8dfa242e1ace.zip |
Add LangOptions::NeXTRuntime.
- Wired to -fnext-runtime and -fgnu-runtime options.
- Defaults to GNU, no autoselection for NeXT.
Emit NeXT OBJC_IMAGE_INFO marker.
llvm-svn: 54651
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 347f4d24f90..fb873c2a67b 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -30,15 +30,13 @@ using namespace CodeGen; CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO, llvm::Module &M, const llvm::TargetData &TD, - Diagnostic &diags, bool GenerateDebugInfo, - bool UseMacObjCRuntime) + Diagnostic &diags, bool GenerateDebugInfo) : Context(C), Features(LO), TheModule(M), TheTargetData(TD), Diags(diags), Types(C, M, TD), Runtime(0), MemCpyFn(0), MemMoveFn(0), MemSetFn(0), CFConstantStringClassRef(0) { if (Features.ObjC1) { - // TODO: Make this selectable at runtime - if (UseMacObjCRuntime) { + if (Features.NeXTRuntime) { Runtime = CreateMacObjCRuntime(*this); } else { Runtime = CreateGNUObjCRuntime(*this); |