[llvm-commits] [gcc-plugin] r75336 - /gcc-plugin/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Fri Jul 10 20:42:37 PDT 2009
Author: baldrick
Date: Fri Jul 10 22:42:37 2009
New Revision: 75336
URL: http://llvm.org/viewvc/llvm-project?rev=75336&view=rev
Log:
The objc_v2_bitfield_ivar_bitpos method was an
LLVM special and does not exist in gcc mainline.
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=75336&r1=75335&r2=75336&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Fri Jul 10 22:42:37 2009
@@ -6489,15 +6489,6 @@
} else {
Value *Offset = Emit(field_offset, 0);
- // For ObjC2, the offset of the field is loaded from memory (it can
- // change at runtime), and the initial value in memory includes the
- // value that would normally be computed at compile time; we don't
- // want to add this in twice. The ObjC FE figures out the value we
- // actually should add at compile time (usually 0).
- tree field_bit_offset = objc_v2_bitfield_ivar_bitpos(exp);
- if (field_bit_offset) {
- BitStart = (unsigned)getINTEGER_CSTVal(field_bit_offset);
- }
// Here BitStart gives the offset of the field in bits from field_offset.
// Incorporate as much of it as possible into the pointer computation.
unsigned ByteOffset = BitStart/8;
More information about the llvm-commits
mailing list