[llvm] a019579 - [StackSafety,NFC] Rename internal class
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 01:36:29 PDT 2020
Author: Vitaly Buka
Date: 2020-06-03T01:36:20-07:00
New Revision: a019579fe56819688a36ba718afc8c7c4f3b04b1
URL: https://github.com/llvm/llvm-project/commit/a019579fe56819688a36ba718afc8c7c4f3b04b1
DIFF: https://github.com/llvm/llvm-project/commit/a019579fe56819688a36ba718afc8c7c4f3b04b1.diff
LOG: [StackSafety,NFC] Rename internal class
Added:
Modified:
llvm/lib/Analysis/StackSafetyAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
index b48550c1230e..d36b258f1754 100644
--- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp
+++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
@@ -58,7 +58,7 @@ class AllocaOffsetRewriter : public SCEVRewriteVisitor<AllocaOffsetRewriter> {
};
/// Describes use of address in as a function call argument.
-struct PassAsArgInfo {
+struct CallInfo {
/// Function being called.
const GlobalValue *Callee = nullptr;
/// Index of argument which pass address.
@@ -68,13 +68,13 @@ struct PassAsArgInfo {
// Range should never set to empty-set, that is an invalid access range
// that can cause empty-set to be propagated with ConstantRange::add
ConstantRange Offset;
- PassAsArgInfo(const GlobalValue *Callee, size_t ParamNo, ConstantRange Offset)
+ CallInfo(const GlobalValue *Callee, size_t ParamNo, ConstantRange Offset)
: Callee(Callee), ParamNo(ParamNo), Offset(Offset) {}
StringRef getName() const { return Callee->getName(); }
};
-raw_ostream &operator<<(raw_ostream &OS, const PassAsArgInfo &P) {
+raw_ostream &operator<<(raw_ostream &OS, const CallInfo &P) {
return OS << "@" << P.getName() << "(arg" << P.ParamNo << ", " << P.Offset
<< ")";
}
@@ -86,7 +86,7 @@ struct UseInfo {
ConstantRange Range;
// List of calls which pass address as an argument.
- SmallVector<PassAsArgInfo, 4> Calls;
+ SmallVector<CallInfo, 4> Calls;
UseInfo(unsigned PointerSize) : Range{PointerSize, false} {}
More information about the llvm-commits
mailing list