mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Add a getName function to MachineFunction. Use it in places that previously did getFunction()->getName(). Remove includes of Function.h that are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162347 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "VirtRegMap.h"
|
||||
#include "LiveDebugVariables.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
@@ -197,7 +196,7 @@ bool VirtRegRewriter::runOnMachineFunction(MachineFunction &fn) {
|
||||
VRM = &getAnalysis<VirtRegMap>();
|
||||
DEBUG(dbgs() << "********** REWRITE VIRTUAL REGISTERS **********\n"
|
||||
<< "********** Function: "
|
||||
<< MF->getFunction()->getName() << '\n');
|
||||
<< MF->getName() << '\n');
|
||||
DEBUG(VRM->dump());
|
||||
|
||||
// Add kill flags while we still have virtual registers.
|
||||
|
||||
Reference in New Issue
Block a user