diff options
Diffstat (limited to 'lld/utils/linker-script-test/linker-script-test.cpp')
-rw-r--r-- | lld/utils/linker-script-test/linker-script-test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/utils/linker-script-test/linker-script-test.cpp b/lld/utils/linker-script-test/linker-script-test.cpp index 9749898..027ecb3 100644 --- a/lld/utils/linker-script-test/linker-script-test.cpp +++ b/lld/utils/linker-script-test/linker-script-test.cpp @@ -48,10 +48,10 @@ int main(int argc, const char **argv) { llvm::errs() << ec.message() << "\n"; return 1; } - Lexer l(std::move(mb.get())); - Parser p(l); - LinkerScript *ls = p.parse(); - if (ls) + Parser p(std::move(mb.get())); + if (!p.parse()) { + LinkerScript *ls = p.get(); ls->dump(llvm::outs()); + } } } |