[llvm] r331610 - [llvm-dwp] Define InitLLVM.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 15:33:41 PDT 2018


What does this do? Can it be tested?

On Sun, May 6, 2018 at 4:12 PM Fangrui Song via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: maskray
> Date: Sun May  6 16:08:29 2018
> New Revision: 331610
>
> URL: http://llvm.org/viewvc/llvm-project?rev=331610&view=rev
> Log:
> [llvm-dwp] Define InitLLVM.
>
> Modified:
>     llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp
>
> Modified: llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp?rev=331610&r1=331609&r2=331610&view=diff
>
> ==============================================================================
> --- llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp (original)
> +++ llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp Sun May  6 16:08:29 2018
> @@ -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, con
>  }
>
>  int main(int argc, char **argv) {
> +  InitLLVM X(argc, argv);
>
>    ParseCommandLineOptions(argc, argv, "merge split dwarf (.dwo) files");
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180507/c81f529a/attachment.html>


More information about the llvm-commits mailing list