diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-14 14:06:12 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-14 14:06:37 +0100 |
commit | df186507e1d07c3ddba091a076ba7a33dbdc5867 (patch) | |
tree | 1a036220e7fe46703e2bc0840172068ddeffadc7 /mlir/lib/IR/SymbolTable.cpp | |
parent | bff33bd5c83b947cccb4d6cf6ebca9dc021f716b (diff) | |
download | bcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.tar.gz bcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.zip |
Make helper functions static or move them into anonymous namespaces. NFC.
Diffstat (limited to 'mlir/lib/IR/SymbolTable.cpp')
-rw-r--r-- | mlir/lib/IR/SymbolTable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/IR/SymbolTable.cpp b/mlir/lib/IR/SymbolTable.cpp index ed9de48c400..ee4bc9ad57a 100644 --- a/mlir/lib/IR/SymbolTable.cpp +++ b/mlir/lib/IR/SymbolTable.cpp @@ -674,8 +674,8 @@ static Attribute rebuildAttrAfterRAUW( } /// Generates a new symbol reference attribute with a new leaf reference. -SymbolRefAttr generateNewRefAttr(SymbolRefAttr oldAttr, - FlatSymbolRefAttr newLeafAttr) { +static SymbolRefAttr generateNewRefAttr(SymbolRefAttr oldAttr, + FlatSymbolRefAttr newLeafAttr) { if (oldAttr.isa<FlatSymbolRefAttr>()) return newLeafAttr; auto nestedRefs = llvm::to_vector<2>(oldAttr.getNestedReferences()); |