Skip to content

Commit 806a79a

Browse files
[llvm] Drop "const" from "const ArrayRef" (NFC) (llvm#138818)
1 parent 2eb6545 commit 806a79a

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

llvm/include/llvm/MC/MCPseudoProbe.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ class MCPseudoProbeDecoder {
510510
return iterator_range(It->second);
511511
}
512512

513-
const ArrayRef<MCDecodedPseudoProbeInlineTree> getInlineTreeVec() const {
513+
ArrayRef<MCDecodedPseudoProbeInlineTree> getInlineTreeVec() const {
514514
return InlineTreeVec;
515515
}
516516

llvm/include/llvm/Transforms/IPO/Attributor.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,7 @@ struct InformationCache {
13431343

13441344
/// Return all functions that might be called indirectly, only valid for
13451345
/// closed world modules (see isClosedWorldModule).
1346-
const ArrayRef<Function *>
1347-
getIndirectlyCallableFunctions(Attributor &A) const;
1346+
ArrayRef<Function *> getIndirectlyCallableFunctions(Attributor &A) const;
13481347

13491348
/// Return the flat address space if the associated target has.
13501349
std::optional<unsigned> getFlatAddressSpace() const;

llvm/lib/Transforms/IPO/Attributor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3285,7 +3285,7 @@ InformationCache::FunctionInfo::~FunctionInfo() {
32853285
It.getSecond()->~InstructionVectorTy();
32863286
}
32873287

3288-
const ArrayRef<Function *>
3288+
ArrayRef<Function *>
32893289
InformationCache::getIndirectlyCallableFunctions(Attributor &A) const {
32903290
assert(A.isClosedWorldModule() && "Cannot see all indirect callees!");
32913291
return IndirectlyCallableFunctions;

llvm/utils/TableGen/Common/CodeGenTarget.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class ComplexPattern {
252252
const Record *getValueType() const { return Ty; }
253253
unsigned getNumOperands() const { return NumOperands; }
254254
const std::string &getSelectFunc() const { return SelectFunc; }
255-
const ArrayRef<const Record *> getRootNodes() const { return RootNodes; }
255+
ArrayRef<const Record *> getRootNodes() const { return RootNodes; }
256256
bool hasProperty(enum SDNP Prop) const { return Properties & (1 << Prop); }
257257
unsigned getComplexity() const { return Complexity; }
258258
bool wantsRoot() const { return WantsRoot; }

0 commit comments

Comments
 (0)