summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR/SymbolTable.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-01-14 14:06:12 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2020-01-14 14:06:37 +0100
commitdf186507e1d07c3ddba091a076ba7a33dbdc5867 (patch)
tree1a036220e7fe46703e2bc0840172068ddeffadc7 /mlir/lib/IR/SymbolTable.cpp
parentbff33bd5c83b947cccb4d6cf6ebca9dc021f716b (diff)
downloadbcm5719-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.cpp4
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());
OpenPOWER on IntegriCloud