diff options
author | Duncan Sands <baldrick@free.fr> | 2010-08-28 01:30:02 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-08-28 01:30:02 +0000 |
commit | 75ebbceeeda1e7a78efe1848bb90e034f0c6ba61 (patch) | |
tree | afd6cfbeeec1c66319f52becfd7b67d7f3479efb /tools/lli | |
parent | 3dd08734c1812e47ae5f6aceba15f28865f75943 (diff) | |
download | external_llvm-75ebbceeeda1e7a78efe1848bb90e034f0c6ba61.zip external_llvm-75ebbceeeda1e7a78efe1848bb90e034f0c6ba61.tar.gz external_llvm-75ebbceeeda1e7a78efe1848bb90e034f0c6ba61.tar.bz2 |
Straighten out any triple strings passed on the command line before
they hit the rest of the system.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r-- | tools/lli/lli.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 4e3e07f..4c37780 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -16,6 +16,7 @@ #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Type.h" +#include "llvm/ADT/Triple.h" #include "llvm/Bitcode/ReaderWriter.h" #include "llvm/CodeGen/LinkAllCodegenComponents.h" #include "llvm/ExecutionEngine/GenericValue.h" @@ -157,7 +158,7 @@ int main(int argc, char **argv, char * const *envp) { // If we are supposed to override the target triple, do so now. if (!TargetTriple.empty()) - Mod->setTargetTriple(TargetTriple); + Mod->setTargetTriple(Triple::normalize(TargetTriple)); CodeGenOpt::Level OLvl = CodeGenOpt::Default; switch (OptLevel) { |