Change references to the Method class to be references to the Function
[oota-llvm.git] / tools / gccld / gccld.cpp
index cb77bb03c064a34d80188af8c163bc58540ca149..d00687fcec6ffc8a96fbbb9e1aa81c4e60fc0f33 100644 (file)
@@ -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 <fstream>
 #include <memory>
@@ -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";