X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fllvm-dis%2Fllvm-dis.cpp;h=067955e5cc6171513cb218dd8602dee2cbac899c;hb=7172b38af7ed5d1c1e2c97fadfb0ae0c19aff816;hp=6450ea6ac74b9ffe0743791bfd1bd2a6110f0379;hpb=2ea93875b2f2900b9d244dfd7649c9ed02a34cd7;p=oota-llvm.git diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp index 6450ea6ac74..067955e5cc6 100644 --- a/tools/llvm-dis/llvm-dis.cpp +++ b/tools/llvm-dis/llvm-dis.cpp @@ -16,21 +16,21 @@ // //===----------------------------------------------------------------------===// -#include "llvm/LLVMContext.h" -#include "llvm/Module.h" -#include "llvm/Type.h" -#include "llvm/IntrinsicInst.h" -#include "llvm/Bitcode/ReaderWriter.h" -#include "llvm/Analysis/DebugInfo.h" +#include "llvm/IR/LLVMContext.h" #include "llvm/Assembly/AssemblyAnnotationWriter.h" +#include "llvm/Bitcode/ReaderWriter.h" +#include "llvm/DebugInfo.h" +#include "llvm/IR/IntrinsicInst.h" +#include "llvm/IR/Module.h" +#include "llvm/IR/Type.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/DataStream.h" #include "llvm/Support/FormattedStream.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/PrettyStackTrace.h" -#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/Signals.h" +#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/system_error.h" using namespace llvm; @@ -93,7 +93,6 @@ public: DIVariable Var(DDI->getVariable()); if (!Padded) { OS.PadToColumn(50); - Padded = true; OS << ";"; } OS << " [debug variable = " << Var.getName() << "]"; @@ -102,7 +101,6 @@ public: DIVariable Var(DVI->getVariable()); if (!Padded) { OS.PadToColumn(50); - Padded = true; OS << ";"; } OS << " [debug variable = " << Var.getName() << "]"; @@ -125,7 +123,7 @@ int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n"); std::string ErrorMessage; - std::auto_ptr M; + OwningPtr M; // Use the bitcode streaming interface DataStreamer *streamer = getDataFileStreamer(InputFilename, &ErrorMessage);