From 8b8e5216af9b45caf068f3a75e8638b6218355ef Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 8 Oct 2013 03:59:45 +0000 Subject: [PATCH] Make bitmask an unsigned type. llvm-svn: 192163 --- lld/include/lld/Core/LinkingContext.h | 2 +- lld/lib/Core/LinkingContext.cpp | 2 +- lld/lib/Core/Resolver.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/include/lld/Core/LinkingContext.h b/lld/include/lld/Core/LinkingContext.h index 1b8388a..47805f4 100644 --- a/lld/include/lld/Core/LinkingContext.h +++ b/lld/include/lld/Core/LinkingContext.h @@ -312,7 +312,7 @@ public: /// types of nodes in the InputGraph. The resolver state is nothing but a /// bitmask of various types of states that the resolver handles when adding /// atoms. - virtual void setResolverState(int32_t resolverState) const; + virtual void setResolverState(uint32_t resolverState) const; /// @} diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp index 0bfef16..5d5d34f 100644 --- a/lld/lib/Core/LinkingContext.cpp +++ b/lld/lib/Core/LinkingContext.cpp @@ -76,7 +76,7 @@ bool LinkingContext::createInternalFiles( return true; } -void LinkingContext::setResolverState(int32_t state) const { +void LinkingContext::setResolverState(uint32_t state) const { _currentInputElement->setResolverState(state); } diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp index f43368c..ee72c5b 100644 --- a/lld/lib/Core/Resolver.cpp +++ b/lld/lib/Core/Resolver.cpp @@ -74,7 +74,7 @@ private: void Resolver::doFile(const File &file) {} void Resolver::handleFile(const File &file) { - int32_t resolverState = Resolver::StateNoChange; + uint32_t resolverState = Resolver::StateNoChange; doFile(file); for (const DefinedAtom *atom : file.defined()) { doDefinedAtom(*atom); -- 2.7.4