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 | f77ac86f4eca528a04b817d7ad7f045a47d52712 (patch) | |
tree | c029884b8ff18e6436d9e322d5062a4a619e5bec /lib/CodeGen/CodeGenModule.cpp | |
parent | 709c00cf6e88a1acfe2b27e61c9dc5f7a71e49b9 (diff) |
Add LangOptions::NeXTRuntime.
- Wired to -fnext-runtime and -fgnu-runtime options.
- Defaults to GNU, no autoselection for NeXT.
Emit NeXT OBJC_IMAGE_INFO marker.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 347f4d24f9..fb873c2a67 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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); |