mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Make some helpers static or move into the llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217077 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -221,7 +221,7 @@ static unsigned ApproximateLoopSize(const Loop *L, unsigned &NumCalls,
|
||||
// Returns the loop hint metadata node with the given name (for example,
|
||||
// "llvm.loop.unroll.count"). If no such metadata node exists, then nullptr is
|
||||
// returned.
|
||||
const MDNode *GetUnrollMetadata(const Loop *L, StringRef Name) {
|
||||
static const MDNode *GetUnrollMetadata(const Loop *L, StringRef Name) {
|
||||
MDNode *LoopID = L->getLoopID();
|
||||
if (!LoopID)
|
||||
return nullptr;
|
||||
|
Reference in New Issue
Block a user