aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-08-28 01:30:02 +0000
committerDuncan Sands <baldrick@free.fr>2010-08-28 01:30:02 +0000
commit75ebbceeeda1e7a78efe1848bb90e034f0c6ba61 (patch)
treeafd6cfbeeec1c66319f52becfd7b67d7f3479efb /tools/llvm-mc
parent3dd08734c1812e47ae5f6aceba15f28865f75943 (diff)
downloadexternal_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/llvm-mc')
-rw-r--r--tools/llvm-mc/llvm-mc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp
index 77d5a31..0cc9689 100644
--- a/tools/llvm-mc/llvm-mc.cpp
+++ b/tools/llvm-mc/llvm-mc.cpp
@@ -390,6 +390,7 @@ int main(int argc, char **argv) {
llvm::InitializeAllDisassemblers();
cl::ParseCommandLineOptions(argc, argv, "llvm machine code playground\n");
+ TripleName = Triple::normalize(TripleName);
switch (Action) {
default: