summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ELFWriter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 04:33:49 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 04:33:49 +0000
commit913c998703231667cdd2befac755e19f9b6f1816 (patch)
tree6d5533a5a4e0fad350c564cbaa47e812f5f7cd5c /llvm/lib/CodeGen/ELFWriter.cpp
parent60bbb8c356cb86507e15aef1132e93acecf66a05 (diff)
downloadbcm5719-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.cpp2
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());
OpenPOWER on IntegriCloud