From 2b0d797cafafbd915d7191efdde3e708a1163b91 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 8 Jul 2016 20:53:27 +0200 Subject: o Refactoring visitors into listeners, that is the only variant the C++ target supports. Ready for translation! --- cmake/elfinfo/src/main/test/io/trygvis/ld/FullScriptsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmake/elfinfo/src/main/test/io') diff --git a/cmake/elfinfo/src/main/test/io/trygvis/ld/FullScriptsTest.java b/cmake/elfinfo/src/main/test/io/trygvis/ld/FullScriptsTest.java index 1452f1f..0c5a30c 100644 --- a/cmake/elfinfo/src/main/test/io/trygvis/ld/FullScriptsTest.java +++ b/cmake/elfinfo/src/main/test/io/trygvis/ld/FullScriptsTest.java @@ -19,13 +19,13 @@ public class FullScriptsTest { private void fullScript2(String fileName) throws Exception { try { - LdScript script = LdScript.parse(new File(fileName)); + LdLoader script = LdLoader.load(new File(fileName)); System.out.println("--------------------------------------------------------"); - for (LdScript.MemoryArea area : script.memoryAreas) { + for (LdLoader.MemoryArea area : script.memoryAreas) { System.out.println(" " + area.name + "(" + area.prettyAttributes() + ") : ORIGIN = " + area.prettyOrigin() + ", LENGTH=" + area.prettyLength()); } - } catch (LdScript.ParseErrorException e) { + } catch (LdLoader.ParseErrorException e) { Test1Test.showTokens(e.tokens, e.parser); System.out.println("Got " + e.errors.size() + " errors:"); e.errors.forEach(System.out::println); -- cgit v1.2.3