mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
Remove using decl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
987cb2c3da
commit
1815383276
@ -16,10 +16,7 @@
|
|||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/BasicBlock.h"
|
#include "llvm/BasicBlock.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "../../Target/Sparc/SparcInstrSelectionSupport.h"
|
#include "../../Target/Sparc/SparcInstrSelectionSupport.h" // FIXME!
|
||||||
using std::vector;
|
|
||||||
|
|
||||||
//*************************** Local Functions ******************************/
|
|
||||||
|
|
||||||
|
|
||||||
// Generate code to load the constant into a TmpInstruction (virtual reg) and
|
// Generate code to load the constant into a TmpInstruction (virtual reg) and
|
||||||
@ -29,7 +26,7 @@ static TmpInstruction*
|
|||||||
InsertCodeToLoadConstant(Function *F,
|
InsertCodeToLoadConstant(Function *F,
|
||||||
Value* opValue,
|
Value* opValue,
|
||||||
Instruction* vmInstr,
|
Instruction* vmInstr,
|
||||||
vector<MachineInstr*>& loadConstVec,
|
std::vector<MachineInstr*>& loadConstVec,
|
||||||
TargetMachine& target)
|
TargetMachine& target)
|
||||||
{
|
{
|
||||||
// Create a tmp virtual register to hold the constant.
|
// Create a tmp virtual register to hold the constant.
|
||||||
@ -143,12 +140,12 @@ ChooseRegOrImmed(Value* val,
|
|||||||
// fall under case 3; these must be inserted before `minstr'.
|
// fall under case 3; these must be inserted before `minstr'.
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
vector<MachineInstr*>
|
std::vector<MachineInstr*>
|
||||||
FixConstantOperandsForInstr(Instruction* vmInstr,
|
FixConstantOperandsForInstr(Instruction* vmInstr,
|
||||||
MachineInstr* minstr,
|
MachineInstr* minstr,
|
||||||
TargetMachine& target)
|
TargetMachine& target)
|
||||||
{
|
{
|
||||||
vector<MachineInstr*> MVec;
|
std::vector<MachineInstr*> MVec;
|
||||||
|
|
||||||
MachineOpCode opCode = minstr->getOpCode();
|
MachineOpCode opCode = minstr->getOpCode();
|
||||||
const TargetInstrInfo& instrInfo = target.getInstrInfo();
|
const TargetInstrInfo& instrInfo = target.getInstrInfo();
|
||||||
|
@ -16,10 +16,7 @@
|
|||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/BasicBlock.h"
|
#include "llvm/BasicBlock.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "../../Target/Sparc/SparcInstrSelectionSupport.h"
|
#include "../../Target/Sparc/SparcInstrSelectionSupport.h" // FIXME!
|
||||||
using std::vector;
|
|
||||||
|
|
||||||
//*************************** Local Functions ******************************/
|
|
||||||
|
|
||||||
|
|
||||||
// Generate code to load the constant into a TmpInstruction (virtual reg) and
|
// Generate code to load the constant into a TmpInstruction (virtual reg) and
|
||||||
@ -29,7 +26,7 @@ static TmpInstruction*
|
|||||||
InsertCodeToLoadConstant(Function *F,
|
InsertCodeToLoadConstant(Function *F,
|
||||||
Value* opValue,
|
Value* opValue,
|
||||||
Instruction* vmInstr,
|
Instruction* vmInstr,
|
||||||
vector<MachineInstr*>& loadConstVec,
|
std::vector<MachineInstr*>& loadConstVec,
|
||||||
TargetMachine& target)
|
TargetMachine& target)
|
||||||
{
|
{
|
||||||
// Create a tmp virtual register to hold the constant.
|
// Create a tmp virtual register to hold the constant.
|
||||||
@ -143,12 +140,12 @@ ChooseRegOrImmed(Value* val,
|
|||||||
// fall under case 3; these must be inserted before `minstr'.
|
// fall under case 3; these must be inserted before `minstr'.
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
vector<MachineInstr*>
|
std::vector<MachineInstr*>
|
||||||
FixConstantOperandsForInstr(Instruction* vmInstr,
|
FixConstantOperandsForInstr(Instruction* vmInstr,
|
||||||
MachineInstr* minstr,
|
MachineInstr* minstr,
|
||||||
TargetMachine& target)
|
TargetMachine& target)
|
||||||
{
|
{
|
||||||
vector<MachineInstr*> MVec;
|
std::vector<MachineInstr*> MVec;
|
||||||
|
|
||||||
MachineOpCode opCode = minstr->getOpCode();
|
MachineOpCode opCode = minstr->getOpCode();
|
||||||
const TargetInstrInfo& instrInfo = target.getInstrInfo();
|
const TargetInstrInfo& instrInfo = target.getInstrInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user