diff options
author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2017-07-24 16:17:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 16:17:04 +0200 |
commit | 769bd87658d3445af6770cadb1fe50edea833d15 (patch) | |
tree | 685a818fd4a7336232168fde9b86eb229b23e730 /scripts/klee-gcc | |
parent | 9fb2f5666d5f8c7c2f335fc8408883a0cf958964 (diff) | |
parent | 72ea2c66dd4da5971914dce334138f2d5f8db19a (diff) | |
download | klee-769bd87658d3445af6770cadb1fe50edea833d15.tar.gz |
Merge pull request #713 from MartinNowack/remove_llvm_29_33
Remove support for LLVM < 3.4
Diffstat (limited to 'scripts/klee-gcc')
-rwxr-xr-x | scripts/klee-gcc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/scripts/klee-gcc b/scripts/klee-gcc deleted file mode 100755 index 2add2248..00000000 --- a/scripts/klee-gcc +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env python - -# ===-- klee-gcc ----- ----------------------------------------------------===## -# -# The KLEE Symbolic Virtual Machine -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -# ===----------------------------------------------------------------------===## - -import os, sys - -def isLinkCommand(): - # Look for '-Wl,' as a signal that we are calling the linker. What a hack. - for arg in sys.argv: - if arg.startswith('-Wl,'): - return True - -def main(): - if not isLinkCommand(): - os.execvp("llvm-gcc", ["llvm-gcc", "-emit-llvm"] + sys.argv[1:]) - return 1 - - # Otherwise, strip out arguments that llvm-ld doesn't understand. I don't - # want my previous explicit declaration of hackyness to imply that this bit - # of code here is not also a complete and total hack, it is. - args = sys.argv[1:] - linkArgs = [] - for a in args: - if a in ('-g', '-W', '-O', '-D', '-f', - '-fnested-functions', '-pthread'): - continue - elif a.startswith('-Wl,'): - continue - - linkArgs.append(a) - - os.execvp("llvm-ld", ["llvm-ld", "--disable-opt"] + linkArgs) - return 1 - -if __name__ == '__main__': - main() - |