1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[IR] Add doc about Function::createWithDefaultAttr. NFC

This commit is contained in:
Fangrui Song 2021-04-21 16:20:50 -07:00
parent b632d8aff2
commit 40b4beda19

View File

@ -153,6 +153,11 @@ public:
static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
const Twine &N, Module &M);
/// Creates a function with some attributes recorded in llvm.module.flags
/// applied.
///
/// Use this when synthesizing new functions that need attributes that would
/// have been set by command line options.
static Function *createWithDefaultAttr(FunctionType *Ty, LinkageTypes Linkage,
unsigned AddrSpace,
const Twine &N = "",