aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDmitry Polukhin <dmitry.polukhin@gmail.com>2016-04-11 07:48:59 +0000
committerDmitry Polukhin <dmitry.polukhin@gmail.com>2016-04-11 07:48:59 +0000
commit85eda12d093714bfc9f266d50254e82888c9e8c3 (patch)
tree9216c6a571a665d295ab1d8f783c27e121c349a4 /clang/lib/CodeGen/CodeGenModule.h
parentbbffeac569e89a61201ce159790f68b8493042b6 (diff)
downloadllvm-85eda12d093714bfc9f266d50254e82888c9e8c3.zip
llvm-85eda12d093714bfc9f266d50254e82888c9e8c3.tar.gz
llvm-85eda12d093714bfc9f266d50254e82888c9e8c3.tar.bz2
[GCC] Attribute ifunc support in clang
This patch add support for GCC attribute((ifunc("resolver"))) for targets that use ELF as object file format. In general ifunc is a special kind of function alias with type @gnu_indirect_function. LLVM patch http://reviews.llvm.org/D15525 Differential Revision: http://reviews.llvm.org/D15524 llvm-svn: 265917
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index f76f0ba..e1b4ef9 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1175,6 +1175,7 @@ private:
void EmitGlobalFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV);
void EmitGlobalVarDefinition(const VarDecl *D, bool IsTentative = false);
void EmitAliasDefinition(GlobalDecl GD);
+ void emitIFuncDefinition(GlobalDecl GD);
void EmitObjCPropertyImplementations(const ObjCImplementationDecl *D);
void EmitObjCIvarInitializations(ObjCImplementationDecl *D);