From 2fbfdcffd3e0cf41422aaa6c526c37cb02b81341 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 7 Apr 2002 20:49:59 +0000 Subject: Change references to the Method class to be references to the Function class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gccld/gccld.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools/gccld') diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index cb77bb0..d00687f 100644 --- a/tools/gccld/gccld.cpp +++ b/tools/gccld/gccld.cpp @@ -18,7 +18,6 @@ #include "llvm/Bytecode/Reader.h" #include "llvm/Bytecode/Writer.h" #include "llvm/Module.h" -#include "llvm/Method.h" #include "Support/CommandLine.h" #include #include @@ -116,6 +115,15 @@ int main(int argc, char **argv) { } } + // Now that composite has been compiled, scan through the module, looking for + // a main function. If main is defined, mark all other functions internal. + // + + // Next run globaldce... + + // next ? + + std::ofstream Out((OutputFilename+".bc").c_str()); if (!Out.good()) { cerr << "Error opening '" << OutputFilename << ".bc' for writing!\n"; -- cgit v1.1