Anders Carlsson | 461e326 | 2010-04-08 16:30:25 +0000 | [diff] [blame] | 1 | //===--- CGVTables.h - Emit LLVM Code for C++ vtables ---------------------===// |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This contains code dealing with C++ code generation of virtual tables. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef CLANG_CODEGEN_CGVTABLE_H |
| 15 | #define CLANG_CODEGEN_CGVTABLE_H |
| 16 | |
| 17 | #include "llvm/ADT/DenseMap.h" |
Anders Carlsson | 3527225 | 2009-12-06 00:23:49 +0000 | [diff] [blame] | 18 | #include "llvm/GlobalVariable.h" |
Peter Collingbourne | 1411047 | 2011-01-13 18:57:25 +0000 | [diff] [blame] | 19 | #include "clang/Basic/ABI.h" |
Anders Carlsson | a0fdd91 | 2009-11-13 17:08:56 +0000 | [diff] [blame] | 20 | #include "GlobalDecl.h" |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 21 | |
| 22 | namespace clang { |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 23 | class CXXRecordDecl; |
Benjamin Kramer | 39411b9 | 2009-11-26 13:09:03 +0000 | [diff] [blame] | 24 | |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 25 | namespace CodeGen { |
| 26 | class CodeGenModule; |
Anders Carlsson | a94822e | 2009-11-26 02:32:05 +0000 | [diff] [blame] | 27 | |
Anders Carlsson | 6b4333d | 2010-01-13 20:11:15 +0000 | [diff] [blame] | 28 | // BaseSubobject - Uniquely identifies a direct or indirect base class. |
| 29 | // Stores both the base class decl and the offset from the most derived class to |
| 30 | // the base class. |
| 31 | class BaseSubobject { |
| 32 | /// Base - The base class declaration. |
| 33 | const CXXRecordDecl *Base; |
| 34 | |
| 35 | /// BaseOffset - The offset from the most derived class to the base class. |
| 36 | uint64_t BaseOffset; |
| 37 | |
| 38 | public: |
| 39 | BaseSubobject(const CXXRecordDecl *Base, uint64_t BaseOffset) |
| 40 | : Base(Base), BaseOffset(BaseOffset) { } |
| 41 | |
| 42 | /// getBase - Returns the base class declaration. |
| 43 | const CXXRecordDecl *getBase() const { return Base; } |
| 44 | |
| 45 | /// getBaseOffset - Returns the base class offset. |
| 46 | uint64_t getBaseOffset() const { return BaseOffset; } |
Anders Carlsson | 7e37a69 | 2010-01-14 01:39:42 +0000 | [diff] [blame] | 47 | |
Anders Carlsson | 6b4333d | 2010-01-13 20:11:15 +0000 | [diff] [blame] | 48 | friend bool operator==(const BaseSubobject &LHS, const BaseSubobject &RHS) { |
| 49 | return LHS.Base == RHS.Base && LHS.BaseOffset == RHS.BaseOffset; |
| 50 | } |
| 51 | }; |
Anders Carlsson | 7e37a69 | 2010-01-14 01:39:42 +0000 | [diff] [blame] | 52 | |
| 53 | } // end namespace CodeGen |
| 54 | } // end namespace clang |
| 55 | |
| 56 | namespace llvm { |
| 57 | |
| 58 | template<> struct DenseMapInfo<clang::CodeGen::BaseSubobject> { |
| 59 | static clang::CodeGen::BaseSubobject getEmptyKey() { |
| 60 | return clang::CodeGen::BaseSubobject( |
| 61 | DenseMapInfo<const clang::CXXRecordDecl *>::getEmptyKey(), |
| 62 | DenseMapInfo<uint64_t>::getEmptyKey()); |
| 63 | } |
| 64 | |
| 65 | static clang::CodeGen::BaseSubobject getTombstoneKey() { |
| 66 | return clang::CodeGen::BaseSubobject( |
| 67 | DenseMapInfo<const clang::CXXRecordDecl *>::getTombstoneKey(), |
| 68 | DenseMapInfo<uint64_t>::getTombstoneKey()); |
| 69 | } |
| 70 | |
| 71 | static unsigned getHashValue(const clang::CodeGen::BaseSubobject &Base) { |
| 72 | return |
| 73 | DenseMapInfo<const clang::CXXRecordDecl *>::getHashValue(Base.getBase()) ^ |
| 74 | DenseMapInfo<uint64_t>::getHashValue(Base.getBaseOffset()); |
| 75 | } |
| 76 | |
| 77 | static bool isEqual(const clang::CodeGen::BaseSubobject &LHS, |
| 78 | const clang::CodeGen::BaseSubobject &RHS) { |
| 79 | return LHS == RHS; |
| 80 | } |
| 81 | }; |
| 82 | |
Anders Carlsson | 1bb6099 | 2010-01-14 02:29:07 +0000 | [diff] [blame] | 83 | // It's OK to treat BaseSubobject as a POD type. |
| 84 | template <> struct isPodLike<clang::CodeGen::BaseSubobject> { |
| 85 | static const bool value = true; |
| 86 | }; |
| 87 | |
Anders Carlsson | 7e37a69 | 2010-01-14 01:39:42 +0000 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | namespace clang { |
| 91 | namespace CodeGen { |
| 92 | |
Anders Carlsson | af44035 | 2010-03-23 04:11:45 +0000 | [diff] [blame] | 93 | class CodeGenVTables { |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 94 | CodeGenModule &CGM; |
Benjamin Kramer | 39411b9 | 2009-11-26 13:09:03 +0000 | [diff] [blame] | 95 | |
Anders Carlsson | 046c294 | 2010-04-17 20:15:18 +0000 | [diff] [blame] | 96 | /// MethodVTableIndices - Contains the index (relative to the vtable address |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 97 | /// point) where the function pointer for a virtual function is stored. |
Anders Carlsson | 046c294 | 2010-04-17 20:15:18 +0000 | [diff] [blame] | 98 | typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy; |
| 99 | MethodVTableIndicesTy MethodVTableIndices; |
Benjamin Kramer | 39411b9 | 2009-11-26 13:09:03 +0000 | [diff] [blame] | 100 | |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 101 | typedef std::pair<const CXXRecordDecl *, |
| 102 | const CXXRecordDecl *> ClassPairTy; |
Benjamin Kramer | 39411b9 | 2009-11-26 13:09:03 +0000 | [diff] [blame] | 103 | |
Anders Carlsson | bba1607 | 2010-03-11 07:15:17 +0000 | [diff] [blame] | 104 | /// VirtualBaseClassOffsetOffsets - Contains the vtable offset (relative to |
| 105 | /// the address point) in bytes where the offsets for virtual bases of a class |
| 106 | /// are stored. |
| 107 | typedef llvm::DenseMap<ClassPairTy, int64_t> |
| 108 | VirtualBaseClassOffsetOffsetsMapTy; |
| 109 | VirtualBaseClassOffsetOffsetsMapTy VirtualBaseClassOffsetOffsets; |
Mike Stump | 380dd75 | 2009-11-10 07:44:33 +0000 | [diff] [blame] | 110 | |
Anders Carlsson | 046c294 | 2010-04-17 20:15:18 +0000 | [diff] [blame] | 111 | /// VTables - All the vtables which have been defined. |
| 112 | llvm::DenseMap<const CXXRecordDecl *, llvm::GlobalVariable *> VTables; |
Anders Carlsson | d6b07fb | 2009-11-27 20:47:55 +0000 | [diff] [blame] | 113 | |
| 114 | /// NumVirtualFunctionPointers - Contains the number of virtual function |
| 115 | /// pointers in the vtable for a given record decl. |
| 116 | llvm::DenseMap<const CXXRecordDecl *, uint64_t> NumVirtualFunctionPointers; |
| 117 | |
Anders Carlsson | fbf6ed4 | 2010-03-23 16:36:50 +0000 | [diff] [blame] | 118 | typedef llvm::SmallVector<ThunkInfo, 1> ThunkInfoVectorTy; |
| 119 | typedef llvm::DenseMap<const CXXMethodDecl *, ThunkInfoVectorTy> ThunksMapTy; |
| 120 | |
| 121 | /// Thunks - Contains all thunks that a given method decl will need. |
| 122 | ThunksMapTy Thunks; |
John McCall | e213235 | 2010-06-02 21:22:02 +0000 | [diff] [blame] | 123 | |
| 124 | // The layout entry and a bool indicating whether we've actually emitted |
| 125 | // the vtable. |
| 126 | typedef llvm::PointerIntPair<uint64_t *, 1, bool> VTableLayoutData; |
| 127 | typedef llvm::DenseMap<const CXXRecordDecl *, VTableLayoutData> |
| 128 | VTableLayoutMapTy; |
Anders Carlsson | ccd83d7 | 2010-03-24 16:42:11 +0000 | [diff] [blame] | 129 | |
| 130 | /// VTableLayoutMap - Stores the vtable layout for all record decls. |
| 131 | /// The layout is stored as an array of 64-bit integers, where the first |
| 132 | /// integer is the number of vtable entries in the layout, and the subsequent |
| 133 | /// integers are the vtable components. |
| 134 | VTableLayoutMapTy VTableLayoutMap; |
| 135 | |
Anders Carlsson | 3855a07 | 2010-05-03 00:55:11 +0000 | [diff] [blame] | 136 | typedef std::pair<const CXXRecordDecl *, BaseSubobject> BaseSubobjectPairTy; |
| 137 | typedef llvm::DenseMap<BaseSubobjectPairTy, uint64_t> AddressPointsMapTy; |
Anders Carlsson | 66d567d | 2010-03-25 00:51:13 +0000 | [diff] [blame] | 138 | |
Anders Carlsson | 2c822f1 | 2010-03-26 03:56:54 +0000 | [diff] [blame] | 139 | /// Address points - Address points for all vtables. |
Anders Carlsson | 66d567d | 2010-03-25 00:51:13 +0000 | [diff] [blame] | 140 | AddressPointsMapTy AddressPoints; |
Anders Carlsson | 2c822f1 | 2010-03-26 03:56:54 +0000 | [diff] [blame] | 141 | |
| 142 | /// VTableAddressPointsMapTy - Address points for a single vtable. |
| 143 | typedef llvm::DenseMap<BaseSubobject, uint64_t> VTableAddressPointsMapTy; |
| 144 | |
Anders Carlsson | 0d1407e | 2010-03-25 15:26:28 +0000 | [diff] [blame] | 145 | typedef llvm::SmallVector<std::pair<uint64_t, ThunkInfo>, 1> |
| 146 | VTableThunksTy; |
| 147 | |
| 148 | typedef llvm::DenseMap<const CXXRecordDecl *, VTableThunksTy> |
| 149 | VTableThunksMapTy; |
| 150 | |
| 151 | /// VTableThunksMap - Contains thunks needed by vtables. |
| 152 | VTableThunksMapTy VTableThunksMap; |
| 153 | |
Anders Carlsson | ccd83d7 | 2010-03-24 16:42:11 +0000 | [diff] [blame] | 154 | uint64_t getNumVTableComponents(const CXXRecordDecl *RD) const { |
| 155 | assert(VTableLayoutMap.count(RD) && "No vtable layout for this class!"); |
| 156 | |
John McCall | e213235 | 2010-06-02 21:22:02 +0000 | [diff] [blame] | 157 | return VTableLayoutMap.lookup(RD).getPointer()[0]; |
Anders Carlsson | ccd83d7 | 2010-03-24 16:42:11 +0000 | [diff] [blame] | 158 | } |
| 159 | |
Anders Carlsson | a7cde3b | 2010-03-29 03:38:52 +0000 | [diff] [blame] | 160 | const uint64_t *getVTableComponentsData(const CXXRecordDecl *RD) const { |
| 161 | assert(VTableLayoutMap.count(RD) && "No vtable layout for this class!"); |
| 162 | |
John McCall | e213235 | 2010-06-02 21:22:02 +0000 | [diff] [blame] | 163 | uint64_t *Components = VTableLayoutMap.lookup(RD).getPointer(); |
Anders Carlsson | a7cde3b | 2010-03-29 03:38:52 +0000 | [diff] [blame] | 164 | return &Components[1]; |
| 165 | } |
| 166 | |
Anders Carlsson | 3855a07 | 2010-05-03 00:55:11 +0000 | [diff] [blame] | 167 | typedef llvm::DenseMap<BaseSubobjectPairTy, uint64_t> SubVTTIndiciesMapTy; |
Anders Carlsson | e1dcc22 | 2010-03-26 04:23:58 +0000 | [diff] [blame] | 168 | |
| 169 | /// SubVTTIndicies - Contains indices into the various sub-VTTs. |
| 170 | SubVTTIndiciesMapTy SubVTTIndicies; |
| 171 | |
Anders Carlsson | 3855a07 | 2010-05-03 00:55:11 +0000 | [diff] [blame] | 172 | typedef llvm::DenseMap<BaseSubobjectPairTy, uint64_t> |
Anders Carlsson | e1dcc22 | 2010-03-26 04:23:58 +0000 | [diff] [blame] | 173 | SecondaryVirtualPointerIndicesMapTy; |
| 174 | |
| 175 | /// SecondaryVirtualPointerIndices - Contains the secondary virtual pointer |
| 176 | /// indices. |
| 177 | SecondaryVirtualPointerIndicesMapTy SecondaryVirtualPointerIndices; |
Anders Carlsson | c997d42 | 2010-01-02 01:01:18 +0000 | [diff] [blame] | 178 | |
Anders Carlsson | d6b07fb | 2009-11-27 20:47:55 +0000 | [diff] [blame] | 179 | /// getNumVirtualFunctionPointers - Return the number of virtual function |
| 180 | /// pointers in the vtable for a given record decl. |
| 181 | uint64_t getNumVirtualFunctionPointers(const CXXRecordDecl *RD); |
| 182 | |
Anders Carlsson | 046c294 | 2010-04-17 20:15:18 +0000 | [diff] [blame] | 183 | void ComputeMethodVTableIndices(const CXXRecordDecl *RD); |
Anders Carlsson | c3a46ef | 2009-12-06 01:09:21 +0000 | [diff] [blame] | 184 | |
Anders Carlsson | fbf6ed4 | 2010-03-23 16:36:50 +0000 | [diff] [blame] | 185 | /// EmitThunk - Emit a single thunk. |
Anders Carlsson | 14e82fd | 2011-02-06 18:31:40 +0000 | [diff] [blame^] | 186 | void EmitThunk(GlobalDecl GD, const ThunkInfo &Thunk, |
| 187 | bool UseAvailableExternallyLinkage); |
| 188 | |
| 189 | /// MaybeEmitThunkAvailableExternally - Try to emit the given thunk with |
| 190 | /// available_externally linkage to allow for inlining of thunks. |
| 191 | /// This will be done iff optimizations are enabled and the member function |
| 192 | /// doesn't contain any incomplete types. |
| 193 | void MaybeEmitThunkAvailableExternally(GlobalDecl GD, const ThunkInfo &Thunk); |
| 194 | |
Anders Carlsson | ccd83d7 | 2010-03-24 16:42:11 +0000 | [diff] [blame] | 195 | /// ComputeVTableRelatedInformation - Compute and store all vtable related |
| 196 | /// information (vtable layout, vbase offset offsets, thunks etc) for the |
| 197 | /// given record decl. |
John McCall | e213235 | 2010-06-02 21:22:02 +0000 | [diff] [blame] | 198 | void ComputeVTableRelatedInformation(const CXXRecordDecl *RD, |
| 199 | bool VTableRequired); |
Anders Carlsson | ccd83d7 | 2010-03-24 16:42:11 +0000 | [diff] [blame] | 200 | |
Anders Carlsson | 0d1407e | 2010-03-25 15:26:28 +0000 | [diff] [blame] | 201 | /// CreateVTableInitializer - Create a vtable initializer for the given record |
| 202 | /// decl. |
| 203 | /// \param Components - The vtable components; this is really an array of |
| 204 | /// VTableComponents. |
| 205 | llvm::Constant *CreateVTableInitializer(const CXXRecordDecl *RD, |
| 206 | const uint64_t *Components, |
| 207 | unsigned NumComponents, |
| 208 | const VTableThunksTy &VTableThunks); |
Anders Carlsson | 2c822f1 | 2010-03-26 03:56:54 +0000 | [diff] [blame] | 209 | |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 210 | public: |
Anders Carlsson | af44035 | 2010-03-23 04:11:45 +0000 | [diff] [blame] | 211 | CodeGenVTables(CodeGenModule &CGM) |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 212 | : CGM(CGM) { } |
| 213 | |
Argyrios Kyrtzidis | d2c47bd | 2010-10-11 03:25:57 +0000 | [diff] [blame] | 214 | /// \brief True if the VTable of this record must be emitted in the |
| 215 | /// translation unit. |
| 216 | bool ShouldEmitVTableInThisTU(const CXXRecordDecl *RD); |
Rafael Espindola | b8cab18 | 2010-04-19 00:44:22 +0000 | [diff] [blame] | 217 | |
Anders Carlsson | c997d42 | 2010-01-02 01:01:18 +0000 | [diff] [blame] | 218 | /// needsVTTParameter - Return whether the given global decl needs a VTT |
| 219 | /// parameter, which it does if it's a base constructor or destructor with |
| 220 | /// virtual bases. |
| 221 | static bool needsVTTParameter(GlobalDecl GD); |
| 222 | |
| 223 | /// getSubVTTIndex - Return the index of the sub-VTT for the base class of the |
| 224 | /// given record decl. |
Anders Carlsson | c11bb21 | 2010-05-02 23:53:25 +0000 | [diff] [blame] | 225 | uint64_t getSubVTTIndex(const CXXRecordDecl *RD, BaseSubobject Base); |
Anders Carlsson | c997d42 | 2010-01-02 01:01:18 +0000 | [diff] [blame] | 226 | |
Anders Carlsson | e1dcc22 | 2010-03-26 04:23:58 +0000 | [diff] [blame] | 227 | /// getSecondaryVirtualPointerIndex - Return the index in the VTT where the |
| 228 | /// virtual pointer for the given subobject is located. |
| 229 | uint64_t getSecondaryVirtualPointerIndex(const CXXRecordDecl *RD, |
| 230 | BaseSubobject Base); |
| 231 | |
Anders Carlsson | 046c294 | 2010-04-17 20:15:18 +0000 | [diff] [blame] | 232 | /// getMethodVTableIndex - Return the index (relative to the vtable address |
Benjamin Kramer | 39411b9 | 2009-11-26 13:09:03 +0000 | [diff] [blame] | 233 | /// point) where the function pointer for the given virtual function is |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 234 | /// stored. |
Anders Carlsson | 046c294 | 2010-04-17 20:15:18 +0000 | [diff] [blame] | 235 | uint64_t getMethodVTableIndex(GlobalDecl GD); |
Benjamin Kramer | 39411b9 | 2009-11-26 13:09:03 +0000 | [diff] [blame] | 236 | |
Anders Carlsson | bba1607 | 2010-03-11 07:15:17 +0000 | [diff] [blame] | 237 | /// getVirtualBaseOffsetOffset - Return the offset in bytes (relative to the |
| 238 | /// vtable address point) where the offset of the virtual base that contains |
| 239 | /// the given base is stored, otherwise, if no virtual base contains the given |
Mike Stump | ab28c13 | 2009-10-13 22:54:56 +0000 | [diff] [blame] | 240 | /// class, return 0. Base must be a virtual base class or an unambigious |
| 241 | /// base. |
Anders Carlsson | bba1607 | 2010-03-11 07:15:17 +0000 | [diff] [blame] | 242 | int64_t getVirtualBaseOffsetOffset(const CXXRecordDecl *RD, |
| 243 | const CXXRecordDecl *VBase); |
Mike Stump | 380dd75 | 2009-11-10 07:44:33 +0000 | [diff] [blame] | 244 | |
Anders Carlsson | 64c9eca | 2010-03-29 02:08:26 +0000 | [diff] [blame] | 245 | /// getAddressPoint - Get the address point of the given subobject in the |
| 246 | /// class decl. |
| 247 | uint64_t getAddressPoint(BaseSubobject Base, const CXXRecordDecl *RD); |
| 248 | |
Anders Carlsson | 5eea876 | 2010-03-24 05:32:05 +0000 | [diff] [blame] | 249 | /// GetAddrOfVTable - Get the address of the vtable for the given record decl. |
Anders Carlsson | 9dc338a | 2010-03-30 03:35:35 +0000 | [diff] [blame] | 250 | llvm::GlobalVariable *GetAddrOfVTable(const CXXRecordDecl *RD); |
Anders Carlsson | 5c6c1d9 | 2010-03-24 03:57:14 +0000 | [diff] [blame] | 251 | |
Anders Carlsson | a7cde3b | 2010-03-29 03:38:52 +0000 | [diff] [blame] | 252 | /// EmitVTableDefinition - Emit the definition of the given vtable. |
| 253 | void EmitVTableDefinition(llvm::GlobalVariable *VTable, |
| 254 | llvm::GlobalVariable::LinkageTypes Linkage, |
| 255 | const CXXRecordDecl *RD); |
| 256 | |
Anders Carlsson | ff143f8 | 2010-03-25 00:35:49 +0000 | [diff] [blame] | 257 | /// GenerateConstructionVTable - Generate a construction vtable for the given |
| 258 | /// base subobject. |
| 259 | llvm::GlobalVariable * |
| 260 | GenerateConstructionVTable(const CXXRecordDecl *RD, const BaseSubobject &Base, |
| 261 | bool BaseIsVirtual, |
Anders Carlsson | 2c822f1 | 2010-03-26 03:56:54 +0000 | [diff] [blame] | 262 | VTableAddressPointsMapTy& AddressPoints); |
Anders Carlsson | 1cbce12 | 2011-01-29 19:16:51 +0000 | [diff] [blame] | 263 | |
| 264 | |
| 265 | /// GetAddrOfVTable - Get the address of the VTT for the given record decl. |
| 266 | llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD); |
| 267 | |
| 268 | /// EmitVTTDefinition - Emit the definition of the given vtable. |
| 269 | void EmitVTTDefinition(llvm::GlobalVariable *VTT, |
| 270 | llvm::GlobalVariable::LinkageTypes Linkage, |
| 271 | const CXXRecordDecl *RD); |
Rafael Espindola | bbf58bb | 2010-03-10 02:19:29 +0000 | [diff] [blame] | 272 | |
Douglas Gregor | 6fb745b | 2010-05-13 16:44:06 +0000 | [diff] [blame] | 273 | /// EmitThunks - Emit the associated thunks for the given global decl. |
| 274 | void EmitThunks(GlobalDecl GD); |
| 275 | |
Anders Carlsson | 7986ad5 | 2010-03-23 18:18:41 +0000 | [diff] [blame] | 276 | /// GenerateClassData - Generate all the class data required to be generated |
Rafael Espindola | bbf58bb | 2010-03-10 02:19:29 +0000 | [diff] [blame] | 277 | /// upon definition of a KeyFunction. This includes the vtable, the |
| 278 | /// rtti data structure and the VTT. |
| 279 | /// |
| 280 | /// \param Linkage - The desired linkage of the vtable, the RTTI and the VTT. |
| 281 | void GenerateClassData(llvm::GlobalVariable::LinkageTypes Linkage, |
| 282 | const CXXRecordDecl *RD); |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 283 | }; |
Benjamin Kramer | 39411b9 | 2009-11-26 13:09:03 +0000 | [diff] [blame] | 284 | |
Anders Carlsson | 1bb6099 | 2010-01-14 02:29:07 +0000 | [diff] [blame] | 285 | } // end namespace CodeGen |
| 286 | } // end namespace clang |
Anders Carlsson | dbd920c | 2009-10-11 22:13:54 +0000 | [diff] [blame] | 287 | #endif |