From d77cc13cee3d4b198a8e4cb253cd11bcfb00e906 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 6 May 2018 23:08:29 +0000 Subject: [PATCH] [llvm-dwp] Define InitLLVM. llvm-svn: 331610 --- tools/llvm-dwp/llvm-dwp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/llvm-dwp/llvm-dwp.cpp b/tools/llvm-dwp/llvm-dwp.cpp index 3079b3fe1b5..86409b11335 100644 --- a/tools/llvm-dwp/llvm-dwp.cpp +++ b/tools/llvm-dwp/llvm-dwp.cpp @@ -32,6 +32,7 @@ #include "llvm/Support/DataExtractor.h" #include "llvm/Support/Error.h" #include "llvm/Support/FileSystem.h" +#include "llvm/Support/InitLLVM.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" @@ -640,6 +641,7 @@ static int error(const Twine &Error, const Twine &Context) { } int main(int argc, char **argv) { + InitLLVM X(argc, argv); ParseCommandLineOptions(argc, argv, "merge split dwarf (.dwo) files");