[llvm-commits] [gcc-plugin] r75333 - /gcc-plugin/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Fri Jul 10 20:37:27 PDT 2009
Author: baldrick
Date: Fri Jul 10 22:37:26 2009
New Revision: 75333
URL: http://llvm.org/viewvc/llvm-project?rev=75333&view=rev
Log:
It is no longer possible to directly access the
file and line fields of location_t.
Modified:
gcc-plugin/trunk/llvm-convert.cpp
Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=75333&r1=75332&r2=75333&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Fri Jul 10 22:37:26 2009
@@ -4995,8 +4995,8 @@
// Get file and line number
location_t locus = EXPR_LOCATION (exp);
- Constant *lineNo = ConstantInt::get(Type::Int32Ty, locus.line);
- Constant *file = ConvertMetadataStringToGV(locus.file);
+ Constant *lineNo = ConstantInt::get(Type::Int32Ty, LOCATION_LINE(locus));
+ Constant *file = ConvertMetadataStringToGV(LOCATION_FILE(locus));
const Type *SBP= PointerType::getUnqual(Type::Int8Ty);
file = Builder.getFolder().CreateBitCast(file, SBP);
More information about the llvm-commits
mailing list