Add DBG_VALUE handling for byval parameters; this
[oota-llvm.git] / lib / CodeGen / ELFWriter.cpp
index fe55b32e3ca666a6d4bf6670ab6cd295e1d1cc36..b644ebeb4be53a73e3234379b90ae34b6e11b59e 100644 (file)
@@ -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());