diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-15 04:33:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-15 04:33:49 +0000 |
commit | ae541aad5c36cb3e4256514447d1f81e253079c7 (patch) | |
tree | f2d8e82324f62acca48f90c0535719daafc22c17 /lib/CodeGen/ELFWriter.cpp | |
parent | dc7d6c9ddc1d1527a06f61b5da806781ff047709 (diff) | |
download | external_llvm-ae541aad5c36cb3e4256514447d1f81e253079c7.tar.gz external_llvm-ae541aad5c36cb3e4256514447d1f81e253079c7.tar.bz2 external_llvm-ae541aad5c36cb3e4256514447d1f81e253079c7.zip |
Add more const qualifiers for LLVM IR pointers in CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFWriter.cpp')
-rw-r--r-- | lib/CodeGen/ELFWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp index fe55b32e3c..b644ebeb4b 100644 --- a/lib/CodeGen/ELFWriter.cpp +++ b/lib/CodeGen/ELFWriter.cpp @@ -208,7 +208,7 @@ ELFSection &ELFWriter::getDtorSection() { } // getTextSection - Get the text section for the specified function -ELFSection &ELFWriter::getTextSection(Function *F) { +ELFSection &ELFWriter::getTextSection(const Function *F) { const MCSectionELF *Text = (const MCSectionELF *)TLOF.SectionForGlobal(F, Mang, TM); return getSection(Text->getSectionName(), Text->getType(), Text->getFlags()); |