summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp')
-rw-r--r--src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp44
1 files changed, 2 insertions, 42 deletions
diff --git a/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp b/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp
index a69353af9a6..eace40c226c 100644
--- a/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp
+++ b/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp
@@ -13,50 +13,10 @@
#include "SIMachineFunctionInfo.h"
-#include "AMDGPU.h"
-#include "llvm/CodeGen/MachineFunctionPass.h"
using namespace llvm;
-
-SIMachineFunctionInfo::SIMachineFunctionInfo()
- : AMDILMachineFunctionInfo(),
- spi_ps_input_addr(0)
- { }
-
-SIMachineFunctionInfo::SIMachineFunctionInfo(MachineFunction &MF)
- : AMDILMachineFunctionInfo(MF),
+SIMachineFunctionInfo::SIMachineFunctionInfo(const MachineFunction &MF)
+ : MachineFunctionInfo(),
spi_ps_input_addr(0)
{ }
-
-
-namespace {
- class SIInitMachineFunctionInfoPass : public MachineFunctionPass {
-
- private:
- static char ID;
- TargetMachine &TM;
-
- public:
- SIInitMachineFunctionInfoPass(TargetMachine &tm) :
- MachineFunctionPass(ID), TM(tm) { }
- virtual bool runOnMachineFunction(MachineFunction &MF);
- };
-} // End anonymous namespace
-
-char SIInitMachineFunctionInfoPass::ID = 0;
-
-FunctionPass *llvm::createSIInitMachineFunctionInfoPass(TargetMachine &tm) {
- return new SIInitMachineFunctionInfoPass(tm);
-}
-
-/* A MachineFunction's MachineFunctionInfo is initialized in the first call to
- * getInfo(). We need to intialize it as an SIMachineFunctionInfo object
- * before any of the AMDIL passes otherwise it will be an
- * AMDILMachineFunctionInfo object and we won't be able to use it.
- */
-bool SIInitMachineFunctionInfoPass::runOnMachineFunction(MachineFunction &MF)
-{
- SIMachineFunctionInfo * MFI = MF.getInfo<SIMachineFunctionInfo>();
- return false;
-}