diff --git a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp index 7cb86ad95266da..9153645e3d9a11 100644 --- a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp +++ b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp @@ -55,7 +55,7 @@ CodeGenIntrinsicTable::CodeGenIntrinsicTable(const RecordKeeper &RC) { } CodeGenIntrinsic::CodeGenIntrinsic(Record *R, - std::vector DefaultProperties) { + ArrayRef DefaultProperties) { TheDef = R; std::string DefName = std::string(R->getName()); ArrayRef DefLoc = R->getLoc(); @@ -148,7 +148,7 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R, } void CodeGenIntrinsic::setDefaultProperties( - Record *R, std::vector DefaultProperties) { + Record *R, ArrayRef DefaultProperties) { // opt-out of using default attributes. if (R->getValueAsBit("DisableDefaultAttributes")) return; diff --git a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h index da9e386d64d18b..403706407fdba1 100644 --- a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h +++ b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h @@ -14,6 +14,7 @@ #define LLVM_UTILS_TABLEGEN_CODEGENINTRINSICS_H #include "SDNodeProperties.h" +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "llvm/Support/ModRef.h" #include @@ -140,7 +141,7 @@ struct CodeGenIntrinsic { /// Goes through all IntrProperties that have IsDefault /// value set and sets the property. - void setDefaultProperties(Record *R, std::vector DefaultProperties); + void setDefaultProperties(Record *R, ArrayRef DefaultProperties); /// Helper function to set property \p Name to true; void setProperty(Record *R); @@ -154,7 +155,7 @@ struct CodeGenIntrinsic { bool isParamImmArg(unsigned ParamIdx) const; - CodeGenIntrinsic(Record *R, std::vector DefaultProperties); + CodeGenIntrinsic(Record *R, ArrayRef DefaultProperties); }; class CodeGenIntrinsicTable {