summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGRTTI.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-01-29 19:16:51 +0000
committerAnders Carlsson <andersca@mac.com>2011-01-29 19:16:51 +0000
commit883fc72c3c8273e61d92f43e7b6d9cc6bc7244c7 (patch)
treeab827009ad65b85de200de89d028ed5acef65d64 /clang/lib/CodeGen/CGRTTI.cpp
parent93be9a90ccb544d8bb05ddfb5a377d24ff88ba8e (diff)
downloadbcm5719-llvm-883fc72c3c8273e61d92f43e7b6d9cc6bc7244c7.tar.gz
bcm5719-llvm-883fc72c3c8273e61d92f43e7b6d9cc6bc7244c7.zip
Make emitting a VTT a two-step process, much like emitting a VTable. You first get the address of the VTT, and then pass it to EmitVTTDefinition.
llvm-svn: 124539
Diffstat (limited to 'clang/lib/CodeGen/CGRTTI.cpp')
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index 4ba58c71639..244bca8095e 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/lib/CodeGen/CGRTTI.cpp
@@ -522,7 +522,7 @@ llvm::Constant *RTTIBuilder::BuildTypeInfo(QualType Ty, bool Force) {
llvm::SmallString<256> OutName;
CGM.getCXXABI().getMangleContext().mangleCXXRTTI(Ty, OutName);
llvm::StringRef Name = OutName.str();
-
+
llvm::GlobalVariable *OldGV = CGM.getModule().getNamedGlobal(Name);
if (OldGV && !OldGV->isDeclaration())
return llvm::ConstantExpr::getBitCast(OldGV, Int8PtrTy);
OpenPOWER on IntegriCloud