From f9be9a9bf17e2b44e826fe6aa31e2fc691326bc4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 21 Jul 2001 20:09:07 +0000 Subject: [PATCH] Fix code to be in a consistent style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Instruction.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index d5fe1c68e3e..0e73d37978f 100644 --- a/lib/VMCore/Instruction.cpp +++ b/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& -Instruction::getTempValuesForMachineCode() const -{ +const vector &Instruction::getTempValuesForMachineCode() const { return machineInstrVec->getTempValues(); } #endif -void -Instruction::dropAllReferences() { +void Instruction::dropAllReferences() { machineInstrVec->dropAllReferences(); User::dropAllReferences(); } -- 2.34.1