summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDmitry Mikulin <dmitry.mikulin@sony.com>2019-10-16 17:51:40 +0000
committerDmitry Mikulin <dmitry.mikulin@sony.com>2019-10-16 17:51:40 +0000
commite2692b3bc0327606748b6d291b9009d2c845ced5 (patch)
tree1708317b476af3609f0ef2432327ef3db80c3f8b /clang/lib/CodeGen/CodeGenModule.h
parent97ed5625442d66d882c304a72ffe0de9fdad59a1 (diff)
downloadbcm5719-llvm-e2692b3bc0327606748b6d291b9009d2c845ced5.tar.gz
bcm5719-llvm-e2692b3bc0327606748b6d291b9009d2c845ced5.zip
Tag CFI-generated data structures with "#pragma clang section" attributes.
Differential Revision: https://reviews.llvm.org/D68808 llvm-svn: 375022
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 597b8d712ca..a6662da5f55 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1347,6 +1347,11 @@ public:
/// \param QT is the clang QualType of the null pointer.
llvm::Constant *getNullPointer(llvm::PointerType *T, QualType QT);
+ /// Set section attributes requested by "#pragma clang section"
+ /// \param D is the declaration to read semantic attributes from.
+ /// \param GO is the global object to set section attributes.
+ void setPragmaSectionAttributes(const Decl *D, llvm::GlobalObject *GO);
+
private:
llvm::Constant *GetOrCreateLLVMFunction(
StringRef MangledName, llvm::Type *Ty, GlobalDecl D, bool ForVTable,
OpenPOWER on IntegriCloud