diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-13 21:27:19 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-13 21:27:19 +0000 |
commit | 1ca29d318a6632c115b9f62c791077b575494e42 (patch) | |
tree | 2b9e595e121059ef1a578089d6451f3b3b72589d /lib/CodeGen | |
parent | 43da8fbe524f4f1921209e6280678173393fb461 (diff) | |
download | external_llvm-1ca29d318a6632c115b9f62c791077b575494e42.zip external_llvm-1ca29d318a6632c115b9f62c791077b575494e42.tar.gz external_llvm-1ca29d318a6632c115b9f62c791077b575494e42.tar.bz2 |
As Chris pointed out, this doesn't actually need an LLVMContext to operate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index 35f7107..7542d9e 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -123,7 +123,7 @@ bool MachOWriter::doFinalization(Module &M) { // getConstSection - Get constant section for Constant 'C' MachOSection *MachOWriter::getConstSection(Constant *C) { const ConstantArray *CVA = dyn_cast<ConstantArray>(C); - if (CVA && CVA->isCString(*Context)) + if (CVA && CVA->isCString()) return getSection("__TEXT", "__cstring", MachOSection::S_CSTRING_LITERALS); |