summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2012-10-02 18:38:34 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2012-10-02 18:38:34 +0000
commitfeb805fcf22b9568f32d6bee6d837ab417b89c18 (patch)
treef45fd658a9d20be08b5c81eea9512cb76ce36a5f /llvm/lib/Support
parent5e5cf1a50c15aac4efa4492e83a4b2792e50d387 (diff)
downloadbcm5719-llvm-feb805fcf22b9568f32d6bee6d837ab417b89c18.tar.gz
bcm5719-llvm-feb805fcf22b9568f32d6bee6d837ab417b89c18.zip
Support for generating ELF objects on Windows.
This adds 'elf' as a recognized target triple environment value and overrides the default generated object format on Windows platforms if that value is present. This patch also enables MCJIT tests on Windows using the new environment value. llvm-svn: 165030
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 32f4074b15f..abfaecc2790 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -142,6 +142,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
case EABI: return "eabi";
case MachO: return "macho";
case Android: return "android";
+ case ELF: return "elf";
}
llvm_unreachable("Invalid EnvironmentType!");
@@ -314,6 +315,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
.StartsWith("gnu", Triple::GNU)
.StartsWith("macho", Triple::MachO)
.StartsWith("android", Triple::Android)
+ .StartsWith("elf", Triple::ELF)
.Default(Triple::UnknownEnvironment);
}
OpenPOWER on IntegriCloud