@Override
		public void reportWarning(Location location, String msg) {
			entries.add(new PcodeWarning(location, msg));
			super.reportWarning(location, msg);
		}
A p-code parser that provides programmatic access to error diagnostics.
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighProgramCompiler.java