Browse Source

[llvm-dwp] Define InitLLVM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331610 91177308-0d34-0410-b5e6-96231b3b80d8
Fangrui Song 7 năm trước cách đây
mục cha
commit
c5823bd866
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tools/llvm-dwp/llvm-dwp.cpp

+ 2 - 0
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");