forked from OSchip/llvm-project
Apply clang-tidy fixes for performance-unnecessary-value-param in MLIRGen.cpp (NFC)
This commit is contained in:
parent
254302021b
commit
813156eaa9
|
@ -92,7 +92,7 @@ private:
|
|||
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
|
||||
|
||||
/// Helper conversion for a Toy AST location to an MLIR location.
|
||||
mlir::Location loc(Location loc) {
|
||||
mlir::Location loc(const Location &loc) {
|
||||
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
|
||||
loc.col);
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ private:
|
|||
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
|
||||
|
||||
/// Helper conversion for a Toy AST location to an MLIR location.
|
||||
mlir::Location loc(Location loc) {
|
||||
mlir::Location loc(const Location &loc) {
|
||||
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
|
||||
loc.col);
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ private:
|
|||
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
|
||||
|
||||
/// Helper conversion for a Toy AST location to an MLIR location.
|
||||
mlir::Location loc(Location loc) {
|
||||
mlir::Location loc(const Location &loc) {
|
||||
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
|
||||
loc.col);
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ private:
|
|||
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
|
||||
|
||||
/// Helper conversion for a Toy AST location to an MLIR location.
|
||||
mlir::Location loc(Location loc) {
|
||||
mlir::Location loc(const Location &loc) {
|
||||
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
|
||||
loc.col);
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ private:
|
|||
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
|
||||
|
||||
/// Helper conversion for a Toy AST location to an MLIR location.
|
||||
mlir::Location loc(Location loc) {
|
||||
mlir::Location loc(const Location &loc) {
|
||||
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
|
||||
loc.col);
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ private:
|
|||
llvm::StringMap<std::pair<mlir::Type, StructAST *>> structMap;
|
||||
|
||||
/// Helper conversion for a Toy AST location to an MLIR location.
|
||||
mlir::Location loc(Location loc) {
|
||||
mlir::Location loc(const Location &loc) {
|
||||
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
|
||||
loc.col);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue