From 0aff59f32d104df3c6fa620a2efa58349e7df553 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Thu, 29 Sep 2016 00:31:45 +0000 Subject: [PATCH] [LTO] Add a FIXME, we shouldn't expose getComdat(). Thanks to Peter for the suggestion. llvm-svn: 282655 --- llvm/include/llvm/LTO/LTO.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h index 8455021..e885c93 100644 --- a/llvm/include/llvm/LTO/LTO.h +++ b/llvm/include/llvm/LTO/LTO.h @@ -175,6 +175,8 @@ public: // FIXME: Expose a thread-local flag for module asm symbols. return GV && GV->isThreadLocal(); } + + //FIXME: We shouldn't expose this information. Expected getComdat() const { if (!GV) return nullptr; @@ -191,6 +193,7 @@ public: return GO->getComdat(); return nullptr; } + uint64_t getCommonSize() const { assert(Flags & object::BasicSymbolRef::SF_Common); if (!GV) -- 2.7.4