diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp --- a/llvm/tools/llvm-dwp/llvm-dwp.cpp +++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp @@ -64,6 +64,10 @@ cl::value_desc("filename"), cl::cat(DwpCategory)); +static cl::opt + TargetTriple("triple", cl::desc("Override target triple for module"), + cl::init("x86_64-linux-gnu")); + static void writeStringsAndOffsets(MCStreamer &Out, DWPStringPool &Strings, MCSection *StrOffsetSection, StringRef CurStrSection, @@ -709,7 +713,7 @@ std::string ErrorStr; StringRef Context = "dwarf streamer init"; - Triple TheTriple("x86_64-linux-gnu"); + Triple TheTriple(TargetTriple); // Get the target. const Target *TheTarget =