aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-04-10 00:00:25 +0000
committerBill Wendling <isanbard@gmail.com>2009-04-10 00:00:25 +0000
commita6f02fbb7523535da75d27c113a0e308cb05ac8c (patch)
treeb2ee759fdb70c1f5e1531eb45296e3e301d6a4e6 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentfc1665793e62eb4f26d24b8a19eecf59cd872e2a (diff)
Constify getter methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 5ceac3bb4f..c9fd1ac60a 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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())