[llvm-commits] [llvm] r68745 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Bill Wendling
isanbard at gmail.com
Thu Apr 9 17:00:25 PDT 2009
Author: void
Date: Thu Apr 9 19:00:25 2009
New Revision: 68745
URL: http://llvm.org/viewvc/llvm-project?rev=68745&view=rev
Log:
Constify getter methods.
Modified:
llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=68745&r1=68744&r2=68745&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Thu Apr 9 19:00:25 2009
@@ -162,7 +162,7 @@
/// getCurrentFunctionEHName - Called to return (and cache) the
/// CurrentFnEHName.
///
- std::string getCurrentFunctionEHName(const MachineFunction *MF);
+ std::string getCurrentFunctionEHName(const MachineFunction *MF) const;
protected:
/// getAnalysisUsage - Record analysis usage.
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=68745&r1=68744&r2=68745&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Thu Apr 9 19:00:25 2009
@@ -236,7 +236,8 @@
return false;
}
-std::string AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
+std::string
+AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) const {
assert(MF && "No machine function?");
std::string Name = MF->getFunction()->getName();
if (Name.empty())
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=68745&r1=68744&r2=68745&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Thu Apr 9 19:00:25 2009
@@ -858,7 +858,7 @@
//===--------------------------------------------------------------------===//
// Accessors.
//
- AsmPrinter *getAsm() const { return Asm; }
+ const AsmPrinter *getAsm() const { return Asm; }
MachineModuleInfo *getMMI() const { return MMI; }
const TargetAsmInfo *getTargetAsmInfo() const { return TAI; }
const TargetData *getTargetData() const { return TD; }
More information about the llvm-commits
mailing list