diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-11-11 23:05:08 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-11-11 23:05:08 +0000 |
| commit | 2b90a64e319be87760ca2b4323362b1b0e403182 (patch) | |
| tree | c96388aa8f24b4bb46e9d39f0255a15a30f74709 /clang/lib/CodeGen/CodeGenModule.h | |
| parent | cc9030b60a4b84e3057836eaef2e2fc39b2712c8 (diff) | |
| download | bcm5719-llvm-2b90a64e319be87760ca2b4323362b1b0e403182.tar.gz bcm5719-llvm-2b90a64e319be87760ca2b4323362b1b0e403182.zip | |
Extract out a function onto CodeGenModule for getting the map of
features for a particular function, then use it to clean up some
code.
llvm-svn: 252819
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index d3f6e515ad1..b9a5c8d2e6a 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -979,6 +979,11 @@ public: unsigned &CallingConv, bool AttrOnCallSite); + // Fills in the supplied string map with the set of target features for the + // passed in function. + void getFunctionFeatureMap(llvm::StringMap<bool> &FeatureMap, + const FunctionDecl *FD); + StringRef getMangledName(GlobalDecl GD); StringRef getBlockMangledName(GlobalDecl GD, const BlockDecl *BD); |

