mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user