summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2018-09-12 14:09:06 +0000
committerDavid Green <david.green@arm.com>2018-09-12 14:09:06 +0000
commitbe0c5b6d3c415ae2b778c7c641e3f451652718f7 (patch)
treec630557d436e909d11b8db527cad760319ee1d2c /clang/lib/CodeGen/CodeGenModule.h
parenta34679658f881a6751651e0891b08af44b48fe69 (diff)
downloadbcm5719-llvm-be0c5b6d3c415ae2b778c7c641e3f451652718f7.tar.gz
bcm5719-llvm-be0c5b6d3c415ae2b778c7c641e3f451652718f7.zip
[CodeGen] Align rtti and vtable data
Previously the alignment on the newly created rtti/typeinfo data was largely not set, meaning that DataLayout::getPreferredAlignment was free to overalign it to 16 bytes. This causes unnecessary code bloat. Differential Revision: https://reviews.llvm.org/D51416 llvm-svn: 342053
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 91f3d94330f..ae7f7f3e191 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -764,7 +764,8 @@ public:
/// bitcast to the new variable.
llvm::GlobalVariable *
CreateOrReplaceCXXRuntimeVariable(StringRef Name, llvm::Type *Ty,
- llvm::GlobalValue::LinkageTypes Linkage);
+ llvm::GlobalValue::LinkageTypes Linkage,
+ unsigned Alignment);
llvm::Function *
CreateGlobalInitOrDestructFunction(llvm::FunctionType *ty, const Twine &name,
OpenPOWER on IntegriCloud