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 | e4dcecd006bb4bf1fc7fc942fa9f9c8c17a344d3 (patch) | |
| tree | 97c2de197484ba2484e3b9d3ccf8340a23c1a91e /llvm/lib/CodeGen | |
| parent | b4c9579e6912dbdb44803bcdecc43d2233c908c3 (diff) | |
| download | bcm5719-llvm-e4dcecd006bb4bf1fc7fc942fa9f9c8c17a344d3.tar.gz bcm5719-llvm-e4dcecd006bb4bf1fc7fc942fa9f9c8c17a344d3.zip | |
As Chris pointed out, this doesn't actually need an LLVMContext to operate.
llvm-svn: 75508
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/MachOWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp index 35f71075cc7..7542d9ed102 100644 --- a/llvm/lib/CodeGen/MachOWriter.cpp +++ b/llvm/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); |

