Skip to content

Commit

Permalink
[clang][dataflow] Remove deprecated synonyms related to `RecordStorag…
Browse files Browse the repository at this point in the history
…eLocation` and `RecordValue`

Reviewed By: ymandel, xazax.hun

Differential Revision: https://reviews.llvm.org/D159264
  • Loading branch information
martinboehme committed Sep 4, 2023
1 parent 66a652a commit d948d91
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,15 +690,6 @@ RecordValue &refreshRecordValue(RecordStorageLocation &Loc, Environment &Env);
/// See also documentation for the overload above.
RecordValue &refreshRecordValue(const Expr &Expr, Environment &Env);

/// Deprecated synonym for `refreshRecordValue()`.
inline RecordValue &refreshStructValue(RecordStorageLocation &Loc,
Environment &Env) {
return refreshRecordValue(Loc, Env);
}
inline RecordValue &refreshStructValue(const Expr &Expr, Environment &Env) {
return refreshRecordValue(Expr, Env);
}

} // namespace dataflow
} // namespace clang

Expand Down
5 changes: 0 additions & 5 deletions clang/include/clang/Analysis/FlowSensitive/StorageLocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class StorageLocation {
enum class Kind {
Scalar,
Record,
// Deprecated synonym for `Record`
Aggregate = Record,
};

StorageLocation(Kind LocKind, QualType Type) : LocKind(LocKind), Type(Type) {
Expand Down Expand Up @@ -155,9 +153,6 @@ class RecordStorageLocation final : public StorageLocation {
FieldToLoc Children;
};

/// Deprecated synonym for `RecordStorageLocation`.
using AggregateStorageLocation = RecordStorageLocation;

} // namespace dataflow
} // namespace clang

Expand Down
8 changes: 0 additions & 8 deletions clang/include/clang/Analysis/FlowSensitive/Value.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class Value {
Integer,
Pointer,
Record,
// Deprecated synonym for `Record`
Struct = Record,

// TODO: Top values should not be need to be type-specific.
TopBool,
Expand Down Expand Up @@ -227,9 +225,6 @@ class RecordValue final : public Value {
/// Returns the storage location that this `RecordValue` is associated with.
RecordStorageLocation &getLoc() const { return Loc; }

/// Deprecated synonym for `getLoc()`.
RecordStorageLocation &getAggregateLoc() const { return Loc; }

/// Convenience function that returns the child storage location for `Field`.
/// See also the documentation for `RecordStorageLocation::getChild()`.
StorageLocation *getChild(const ValueDecl &Field) const {
Expand All @@ -240,9 +235,6 @@ class RecordValue final : public Value {
RecordStorageLocation &Loc;
};

/// Deprecated synonym for `RecordValue`.
using StructValue = RecordValue;

raw_ostream &operator<<(raw_ostream &OS, const Value &Val);

} // namespace dataflow
Expand Down

0 comments on commit d948d91

Please sign in to comment.