diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-05 23:55:59 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-10 16:13:57 +0200 |
commit | 6fd8eeef7e9cc8e91845097554ad88493aaa9e09 (patch) | |
tree | 51e61a5068e56f275212360df16a3a4fd2e40191 /lib | |
parent | 0bac2ab46d722dd6a6354194903e9b213c80806d (diff) | |
download | llvm-6fd8eeef7e9cc8e91845097554ad88493aaa9e09.tar.gz llvm-6fd8eeef7e9cc8e91845097554ad88493aaa9e09.tar.bz2 llvm-6fd8eeef7e9cc8e91845097554ad88493aaa9e09.tar.xz |
[Embtk] Give ability to specify default linker hash-style at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
(cherry picked from commit cab4a8d897c586d1f53790fefe16fca91f4d18d1)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/Unix/Host.inc | 8 | ||||
-rw-r--r-- | lib/Support/Windows/Host.inc | 8 |
2 files changed, 16 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() != ""; +} diff --git a/lib/Support/Windows/Host.inc b/lib/Support/Windows/Host.inc index 7552d7d166..5c8bcaaf0c 100644 --- a/lib/Support/Windows/Host.inc +++ b/lib/Support/Windows/Host.inc @@ -44,3 +44,11 @@ std::string sys::getDefaultTargetFpu() { bool sys::hasDefaultTargetFpu() { return getDefaultTargetFpu() != ""; } + +std::string sys::getDefaultTargetHashStyle() { + return LLVM_DEFAULT_TARGET_HASHSTYLE; +} + +bool sys::hasDefaultTargetHashStyle() { + return getDefaultTargetHashStyle() != ""; +} |