mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
fc1665793e
commit
a6f02fbb75
@ -162,7 +162,7 @@ namespace llvm {
|
||||
/// 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.
|
||||
|
@ -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())
|
||||
|
@ -858,7 +858,7 @@ public:
|
||||
//===--------------------------------------------------------------------===//
|
||||
// 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; }
|
||||
|
Loading…
Reference in New Issue
Block a user