summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Host.inc
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-05 23:55:59 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-05 23:55:59 +0200
commitcab4a8d897c586d1f53790fefe16fca91f4d18d1 (patch)
tree0f864c9af1a64beb86e3879ca5a89c4a4a3a48de /lib/Support/Unix/Host.inc
parent32e1613ce8f734d858831c228c36da70d783c0cd (diff)
downloadllvm-cab4a8d897c586d1f53790fefe16fca91f4d18d1.tar.gz
llvm-cab4a8d897c586d1f53790fefe16fca91f4d18d1.tar.bz2
llvm-cab4a8d897c586d1f53790fefe16fca91f4d18d1.tar.xz
[Embtk] Give ability to specify default linker hash-style at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'lib/Support/Unix/Host.inc')
-rw-r--r--lib/Support/Unix/Host.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc
index 028a0c78d7..5b55b4f0e9 100644
--- a/lib/Support/Unix/Host.inc
+++ b/lib/Support/Unix/Host.inc
@@ -85,3 +85,11 @@ std::string sys::getDefaultTargetFpu() {
bool sys::hasDefaultTargetFpu() {
return getDefaultTargetFpu() != "";
}
+
+std::string sys::getDefaultTargetHashStyle() {
+ return LLVM_DEFAULT_TARGET_HASHSTYLE;
+}
+
+bool sys::hasDefaultTargetHashStyle() {
+ return getDefaultTargetHashStyle() != "";
+}