mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Changes to build successfully with GCC 3.02
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include "llvm/SymbolTable.h"
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
|
||||
Instruction::Instruction(const Type *ty, unsigned it, const string &Name)
|
||||
Instruction::Instruction(const Type *ty, unsigned it, const std::string &Name)
|
||||
: User(ty, Value::InstructionVal, Name),
|
||||
machineInstrVec(new MachineCodeForVMInstr) {
|
||||
Parent = 0;
|
||||
@@ -23,7 +23,7 @@ Instruction::~Instruction() {
|
||||
}
|
||||
|
||||
// Specialize setName to take care of symbol table majik
|
||||
void Instruction::setName(const string &name, SymbolTable *ST) {
|
||||
void Instruction::setName(const std::string &name, SymbolTable *ST) {
|
||||
BasicBlock *P = 0; Method *PP = 0;
|
||||
assert((ST == 0 || !getParent() || !getParent()->getParent() ||
|
||||
ST == getParent()->getParent()->getSymbolTable()) &&
|
||||
@@ -44,7 +44,7 @@ void Instruction::addMachineInstruction(MachineInstr* minstr) {
|
||||
// sequence of forward declarations. Trying to fix that will
|
||||
// cause a serious circularity in link order.
|
||||
//
|
||||
const vector<Value*> &Instruction::getTempValuesForMachineCode() const {
|
||||
const std::vector<Value*> &Instruction::getTempValuesForMachineCode() const {
|
||||
return machineInstrVec->getTempValues();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user