about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2022-02-28 14:39:48 +0300
committerCristian Cadar <c.cadar@imperial.ac.uk>2022-04-28 14:44:06 -0700
commit1a1b60e82f351baf5b72bf5d7cf740e34378f0bc (patch)
treec0ded8c48ec9d370f48d95adfe6bd8009a93d7f2 /tools
parent33bac31837938c0fdc143022ae8498beb57510a8 (diff)
downloadklee-1a1b60e82f351baf5b72bf5d7cf740e34378f0bc.tar.gz
Make Uclibc support a runtime option, not a compile-time one.
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 5984c2f9..c66b707d 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -1026,13 +1026,6 @@ static void halt_via_gdb(int pid) {
     perror("system");
 }
 
-#ifndef SUPPORT_KLEE_UCLIBC
-static void
-linkWithUclibc(StringRef libDir, std::string opt_suffix,
-               std::vector<std::unique_ptr<llvm::Module>> &modules) {
-  klee_error("invalid libc, no uclibc support!\n");
-}
-#else
 static void replaceOrRenameFunction(llvm::Module *module,
 		const char *old_name, const char *new_name)
 {
@@ -1149,7 +1142,6 @@ linkWithUclibc(StringRef libDir, std::string opt_suffix,
     klee_error("error loading the fortify library '%s': %s",
                FortifyPath.c_str(), errorMsg.c_str());
 }
-#endif
 
 int main(int argc, char **argv, char **envp) {
   atexit(llvm_shutdown);  // Call llvm_shutdown() on exit.