[cfe-commits] r166236 - in /cfe/trunk: include/clang/Driver/CC1Options.td include/clang/Driver/Options.td include/clang/Frontend/CodeGenOptions.h lib/CodeGen/CGDebugInfo.cpp lib/Driver/Tools.cpp lib/Frontend/CompilerInvocation.cpp test/CodeGen/de
echristo at gmail.com
Thu Oct 18 16:23:31 PDT 2012
On Thu, Oct 18, 2012 at 4:21 PM, Craig Topper <craig.topper at gmail.com> wrote:
> Gating the code doesn't actually hide the perf problem. Because the perf
> problem occurs in getPresumedLoc which calculates line and column number.
> The debug code was calling getPresumedLoc twice once to only get the line
> and once to only get the column, but this results in line and column
> actually being calculated twice.
> Perhaps the debug code should be refactored to only call getPresumedLoc
Can do that too. That said your patch is pretty useful as well :)
There are more uses for the column number than just debug info.
More information about the cfe-commits