X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FExecutionEngine%2FInterpreter.h;h=72d97ef8e12beaaa5028cc6723eb1dce11883b14;hb=b09c146b116359616f6cbd4c8b3328607e00ff42;hp=b46574dcba5f54584e064747ea5dbc665a61d128;hpb=4822bd4308ad8abf1a7127fe81d1d462f6d7a340;p=oota-llvm.git diff --git a/include/llvm/ExecutionEngine/Interpreter.h b/include/llvm/ExecutionEngine/Interpreter.h index b46574dcba5..72d97ef8e12 100644 --- a/include/llvm/ExecutionEngine/Interpreter.h +++ b/include/llvm/ExecutionEngine/Interpreter.h @@ -2,8 +2,8 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by Jeff Cohen and is distributed under the -// University of Illinois Open Source License. See LICENSE.TXT for details. +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // @@ -18,21 +18,19 @@ #include "llvm/ExecutionEngine/ExecutionEngine.h" #include -namespace llvm { - extern void LinkInInterpreter(); -} +extern "C" void LLVMLinkInInterpreter(); namespace { struct ForceInterpreterLinking { ForceInterpreterLinking() { - // We must reference the passes in such a way that compilers will not + // We must reference the interpreter in such a way that compilers will not // delete it all as dead code, even with whole program optimization, // yet is effectively a NO-OP. As the compiler isn't smart enough // to know that getenv() never returns -1, this will do the job. if (std::getenv("bar") != (char*) -1) return; - llvm::LinkInInterpreter(); + LLVMLinkInInterpreter(); } } ForceInterpreterLinking; }