diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2017-07-20 20:34:18 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2017-07-20 20:34:18 +0000 |
commit | 1a116db120e750cee60404867c3e79004aaeb668 (patch) | |
tree | 57ed421554837aac402c200216ee0bb0319438f5 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 39aa5dbbf59373fd9178b62fd4f4f7b620f7ef88 (diff) | |
download | bcm5719-llvm-1a116db120e750cee60404867c3e79004aaeb668.tar.gz bcm5719-llvm-1a116db120e750cee60404867c3e79004aaeb668.zip |
[CodeGen][mips] Support `long_call/far/near` attributes
This patch adds support for the `long_call`, `far`, and `near` attributes
for MIPS targets. The `long_call` and `far` attributes are synonyms. All
these attributes override `-mlong-calls` / `-mno-long-calls` command
line options for particular function.
Differential revision: https://reviews.llvm.org/D35479
llvm-svn: 308667
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index b162e72d199..92482ff7b21 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1239,7 +1239,8 @@ private: /// Set function attributes for a function declaration. void SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, - bool IsIncompleteFunction, bool IsThunk); + bool IsIncompleteFunction, bool IsThunk, + ForDefinition_t IsForDefinition); void EmitGlobalDefinition(GlobalDecl D, llvm::GlobalValue *GV = nullptr); |