[llvm] [clang] [clang-tools-extra] Refactor clang::Linkage (PR #80063)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 30 13:37:29 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: None (Kaur-sukhmani)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/80063.diff
1 Files Affected:
- (modified) clang/lib/AST/APValue.cpp (+8-1)
``````````diff
diff --git a/clang/lib/AST/APValue.cpp b/clang/lib/AST/APValue.cpp
index 4eae308ef5b34..5ed64524c3097 100644
--- a/clang/lib/AST/APValue.cpp
+++ b/clang/lib/AST/APValue.cpp
@@ -22,6 +22,14 @@
#include "llvm/Support/raw_ostream.h"
using namespace clang;
+
+enum Linkage {
+ Invalid = 0,
+ External = 1,
+ Internal = 2,
+};
+
+
/// The identity of a type_info object depends on the canonical unqualified
/// type only.
TypeInfoLValue::TypeInfoLValue(const Type *T)
@@ -157,7 +165,6 @@ void APValue::LValuePathEntry::Profile(llvm::FoldingSetNodeID &ID) const {
APValue::LValuePathSerializationHelper::LValuePathSerializationHelper(
ArrayRef<LValuePathEntry> Path, QualType ElemTy)
: Ty((const void *)ElemTy.getTypePtrOrNull()), Path(Path) {}
-
QualType APValue::LValuePathSerializationHelper::getType() {
return QualType::getFromOpaquePtr(Ty);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/80063
More information about the cfe-commits
mailing list