summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-21 20:09:07 +0000
committerChris Lattner <sabre@nondot.org>2001-07-21 20:09:07 +0000
commit7f95c9e33a5c3ff6f236e1b321d98eadd57dece5 (patch)
tree6a30bb4e1cd883506fdc4061618a42c4f5db2248
parent68cf7a4626397a9373f3ebcf9c37fabb1ca395a3 (diff)
downloadbcm5719-llvm-7f95c9e33a5c3ff6f236e1b321d98eadd57dece5.tar.gz
bcm5719-llvm-7f95c9e33a5c3ff6f236e1b321d98eadd57dece5.zip
Fix code to be in a consistent style
llvm-svn: 252
-rw-r--r--llvm/lib/VMCore/Instruction.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp
index d5fe1c68e3e..0e73d37978f 100644
--- a/llvm/lib/VMCore/Instruction.cpp
+++ b/llvm/lib/VMCore/Instruction.cpp
@@ -11,9 +11,8 @@
#include "llvm/Codegen/MachineInstr.h"
Instruction::Instruction(const Type *ty, unsigned it, const string &Name)
- : User(ty, Value::InstructionVal, Name),
- machineInstrVec(new MachineCodeForVMInstr)
-{
+ : User(ty, Value::InstructionVal, Name),
+ machineInstrVec(new MachineCodeForVMInstr) {
Parent = 0;
iType = it;
}
@@ -32,9 +31,7 @@ void Instruction::setName(const string &name) {
if (PP && hasName()) PP->getSymbolTableSure()->insert(this);
}
-void
-Instruction::addMachineInstruction(MachineInstr* minstr)
-{
+void Instruction::addMachineInstruction(MachineInstr* minstr) {
machineInstrVec->push_back(minstr);
}
@@ -44,15 +41,12 @@ 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 vector<Value*> &Instruction::getTempValuesForMachineCode() const {
return machineInstrVec->getTempValues();
}
#endif
-void
-Instruction::dropAllReferences() {
+void Instruction::dropAllReferences() {
machineInstrVec->dropAllReferences();
User::dropAllReferences();
}
OpenPOWER on IntegriCloud