summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-11-11 23:05:08 +0000
committerEric Christopher <echristo@gmail.com>2015-11-11 23:05:08 +0000
commit2b90a64e319be87760ca2b4323362b1b0e403182 (patch)
treec96388aa8f24b4bb46e9d39f0255a15a30f74709 /clang/lib/CodeGen/CodeGenModule.h
parentcc9030b60a4b84e3057836eaef2e2fc39b2712c8 (diff)
downloadbcm5719-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.h5
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);
OpenPOWER on IntegriCloud