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 | 913c998703231667cdd2befac755e19f9b6f1816 (patch) | |
tree | 6d5533a5a4e0fad350c564cbaa47e812f5f7cd5c /llvm/lib/CodeGen/ELFWriter.cpp | |
parent | 60bbb8c356cb86507e15aef1132e93acecf66a05 (diff) | |
download | bcm5719-llvm-913c998703231667cdd2befac755e19f9b6f1816.tar.gz bcm5719-llvm-913c998703231667cdd2befac755e19f9b6f1816.zip |
Add more const qualifiers for LLVM IR pointers in CodeGen.
llvm-svn: 101342
Diffstat (limited to 'llvm/lib/CodeGen/ELFWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ELFWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp index fe55b32e3ca..b644ebeb4be 100644 --- a/llvm/lib/CodeGen/ELFWriter.cpp +++ b/llvm/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()); |