Constify getter methods.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68745 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2009-04-10 00:00:25 +00:00
parent fc1665793e
commit a6f02fbb75
3 changed files with 4 additions and 3 deletions

View File

@ -236,7 +236,8 @@ bool AsmPrinter::doFinalization(Module &M) {
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())