[llvm-commits] [llvm] r162704 -	/llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp
    NAKAMURA Takumi 
    geek4civic at gmail.com
       
    Mon Aug 27 17:23:33 PDT 2012
    
    
  
2012/8/28 Marshall Clow <mclow at qualcomm.com>:
> Author: marshall
> Date: Mon Aug 27 17:53:35 2012
> New Revision: 162704
>
> URL: http://llvm.org/viewvc/llvm-project?rev=162704&view=rev
> Log:
> Fix compile error when building with C++11 - clang thinks that PRIx64 is a user-defined suffix or something
>
> Modified:
>     llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp
>
> Modified: llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp?rev=162704&r1=162703&r2=162704&view=diff
> ==============================================================================
> --- llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp (original)
> +++ llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp Mon Aug 27 17:53:35 2012
> @@ -50,8 +50,8 @@
>  void DWARFDebugRangeList::dump(raw_ostream &OS) const {
>    for (int i = 0, n = Entries.size(); i != n; ++i) {
>      const char *format_str = (AddressSize == 4
> -                              ? "%08x %08"PRIx64" %08"PRIx64"\n"
> -                              : "%08x %016"PRIx64" %016"PRIx64"\n");
> +                              ? "%08x %08"  PRIx64 " %08"  PRIx64 "\n"
> +                              : "%08x %016" PRIx64 " %016" PRIx64 "\n");
>      OS << format(format_str, Offset, Entries[i].StartAddress,
>                                       Entries[i].EndAddress);
>    }
Ouch, I didn't know that. Thanks!
...Takumi
    
    
More information about the llvm-commits
mailing list