parent
de912e2475
commit
fe56c25065
|
@ -162,7 +162,7 @@ namespace llvm {
|
||||||
/// getCurrentFunctionEHName - Called to return (and cache) the
|
/// getCurrentFunctionEHName - Called to return (and cache) the
|
||||||
/// CurrentFnEHName.
|
/// CurrentFnEHName.
|
||||||
///
|
///
|
||||||
std::string getCurrentFunctionEHName(const MachineFunction *MF);
|
std::string getCurrentFunctionEHName(const MachineFunction *MF) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// getAnalysisUsage - Record analysis usage.
|
/// getAnalysisUsage - Record analysis usage.
|
||||||
|
|
|
@ -236,7 +236,8 @@ bool AsmPrinter::doFinalization(Module &M) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
|
std::string
|
||||||
|
AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) const {
|
||||||
assert(MF && "No machine function?");
|
assert(MF && "No machine function?");
|
||||||
std::string Name = MF->getFunction()->getName();
|
std::string Name = MF->getFunction()->getName();
|
||||||
if (Name.empty())
|
if (Name.empty())
|
||||||
|
|
|
@ -858,7 +858,7 @@ public:
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Accessors.
|
// Accessors.
|
||||||
//
|
//
|
||||||
AsmPrinter *getAsm() const { return Asm; }
|
const AsmPrinter *getAsm() const { return Asm; }
|
||||||
MachineModuleInfo *getMMI() const { return MMI; }
|
MachineModuleInfo *getMMI() const { return MMI; }
|
||||||
const TargetAsmInfo *getTargetAsmInfo() const { return TAI; }
|
const TargetAsmInfo *getTargetAsmInfo() const { return TAI; }
|
||||||
const TargetData *getTargetData() const { return TD; }
|
const TargetData *getTargetData() const { return TD; }
|
||||||
|
|
Loading…
Reference in New Issue