[clang] [llvm] [clang-tools-extra] Refactor clang::Linkage (PR #80063)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 30 13:36:47 PST 2024


https://github.com/Kaur-sukhmani created https://github.com/llvm/llvm-project/pull/80063

None

>From c0ba8ba70d545ad0cbeb9d90c3fb0826681c3c5f Mon Sep 17 00:00:00 2001
From: Sukhmani <ksukhmani0910 at chromium.org>
Date: Wed, 31 Jan 2024 03:06:36 +0530
Subject: [PATCH]  Refactor clang::Linkage

---
 clang/lib/AST/APValue.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

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);
 }



More information about the cfe-commits mailing list