aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-22 02:39:47 +0000
committerChris Lattner <sabre@nondot.org>2007-10-22 02:39:47 +0000
commitca6b6a4738a9843531272d455ac6c4e7a6716d3c (patch)
tree5aee2a13ee1fc6ffbcdafadfb6be25e95221bb59 /lib/ExecutionEngine
parent3224cda25e7af1b8644df476e915fb6d3fc7fb15 (diff)
downloadexternal_llvm-ca6b6a4738a9843531272d455ac6c4e7a6716d3c.zip
external_llvm-ca6b6a4738a9843531272d455ac6c4e7a6716d3c.tar.gz
external_llvm-ca6b6a4738a9843531272d455ac6c4e7a6716d3c.tar.bz2
llvm-gcc3 is dead, along with it __main.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp
index f370e5b..61035c2 100644
--- a/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/lib/ExecutionEngine/JIT/Intercept.cpp
@@ -62,14 +62,6 @@ void *FunctionPointers[] = {
};
#endif // __linux__
-// __mainFunc - If the program does not have a linked in __main function, allow
-// it to run, but print a warning.
-static void __mainFunc() {
- fprintf(stderr, "WARNING: Program called __main but was not linked to "
- "libcrtend.a.\nThis probably won't hurt anything unless the "
- "program is written in C++.\n");
-}
-
// jit_exit - Used to intercept the "exit" library call.
static void jit_exit(int Status) {
runAtExitHandlers(); // Run atexit handlers...
@@ -95,10 +87,6 @@ void *JIT::getPointerToNamedFunction(const std::string &Name) {
if (Name == "exit") return (void*)(intptr_t)&jit_exit;
if (Name == "atexit") return (void*)(intptr_t)&jit_atexit;
- // If the program does not have a linked in __main function, allow it to run,
- // but print a warning.
- if (Name == "__main") return (void*)(intptr_t)&__mainFunc;
-
const char *NameStr = Name.c_str();
// If this is an asm specifier, skip the sentinal.
if (NameStr[0] == 1) ++NameStr;