mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Modernize the .ll parsing interface.
* Use StringRef instead of std::string& * Return a std::unique_ptr<Module> instead of taking an optional module to write to (was not really used). * Use current comment style. * Use current naming convention. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -94,7 +94,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Parse the file now...
|
||||
SMDiagnostic Err;
|
||||
std::unique_ptr<Module> M(ParseAssemblyFile(InputFilename, Err, Context));
|
||||
std::unique_ptr<Module> M = parseAssemblyFile(InputFilename, Err, Context);
|
||||
if (!M.get()) {
|
||||
Err.print(argv[0], errs());
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user