diff options
author | Sven Gothel <[email protected]> | 2015-03-08 00:06:11 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-08 00:06:11 +0100 |
commit | da909f84dc8421052c92491baa7dd90e1c78dc8f (patch) | |
tree | 60aca793c01b0e56c1628f8ccdac448f96541ad0 /src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java | |
parent | e2d5d6f55794c5e27c3a29dcbbdaf2921506667d (diff) |
Bug 1134 - Use ASTLocationTag in Logging (PCPP, Emitter); Refine ASTLocationTag log/exception formatting.
Since commit eca019cdea4017227e951d8a9eb30cb34fca4a07, we have ASTLocationTag available.
Hence use it for all logging purposes and emit a standard compiler output,
which shall be parsable by other tools.
Diffstat (limited to 'src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java index 50334c6..c10e03b 100644 --- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java +++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java @@ -42,6 +42,7 @@ import static java.util.logging.Level.INFO; import com.jogamp.gluegen.JavaConfiguration; import com.jogamp.gluegen.cgram.types.AliasedSymbol; +import com.jogamp.gluegen.cgram.types.FunctionSymbol; import java.io.*; import java.text.*; @@ -273,12 +274,12 @@ public class ProcAddressConfiguration extends JavaConfiguration { return tableClassName; } - public boolean skipProcAddressGen(final AliasedSymbol symbol) { + public boolean skipProcAddressGen(final FunctionSymbol symbol) { if ( skipProcAddressGen.contains( symbol.getName() ) || oneInSet(skipProcAddressGen, symbol.getAliasedNames()) ) { - LOG.log(INFO, "Skip ProcAddress: {0}", symbol.getAliasedString()); + LOG.log(INFO, symbol.getASTLocusTag(), "Skip ProcAddress: {0}", symbol.getAliasedString()); return true; } return false; @@ -309,11 +310,11 @@ public class ProcAddressConfiguration extends JavaConfiguration { return procAddressNameConverter.convert(funcName); } - public boolean forceProcAddressGen(final AliasedSymbol symbol) { + public boolean forceProcAddressGen(final FunctionSymbol symbol) { if( forceProcAddressGen4All ) { if(!forceProcAddressGen4AllOnce) { forceProcAddressGen4AllOnce = true; - LOG.log(INFO, "Force ALL ProcAddress"); + LOG.log(INFO, symbol.getASTLocusTag(), "Force ALL ProcAddress"); } return true; } @@ -322,7 +323,7 @@ public class ProcAddressConfiguration extends JavaConfiguration { oneInSet(forceProcAddressGenSet, symbol.getAliasedNames()) ) { - LOG.log(INFO, "Force ProcAddress: {0}", symbol.getAliasedString()); + LOG.log(INFO, symbol.getASTLocusTag(), "Force ProcAddress: {0}", symbol.getAliasedString()); return true; } return false; @@ -338,7 +339,7 @@ public class ProcAddressConfiguration extends JavaConfiguration { localProcAddressCallingConventionMap.put(funcName, callingConvention); } - public String getLocalProcAddressCallingConvention(final AliasedSymbol symbol) { + public String getLocalProcAddressCallingConvention(final FunctionSymbol symbol) { if ( isLocalProcAddressCallingConvention4All() ) { return getLocalProcAddressCallingConvention4All(); } |