[lld] r192163 - Make bitmask an unsigned type.

Rui Ueyama ruiu at google.com
Mon Oct 7 20:59:46 PDT 2013


Author: ruiu
Date: Mon Oct  7 22:59:45 2013
New Revision: 192163

URL: http://llvm.org/viewvc/llvm-project?rev=192163&view=rev
Log:
Make bitmask an unsigned type.

Modified:
    lld/trunk/include/lld/Core/LinkingContext.h
    lld/trunk/lib/Core/LinkingContext.cpp
    lld/trunk/lib/Core/Resolver.cpp

Modified: lld/trunk/include/lld/Core/LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/LinkingContext.h?rev=192163&r1=192162&r2=192163&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/LinkingContext.h (original)
+++ lld/trunk/include/lld/Core/LinkingContext.h Mon Oct  7 22:59:45 2013
@@ -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;
 
   /// @}
 

Modified: lld/trunk/lib/Core/LinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/LinkingContext.cpp?rev=192163&r1=192162&r2=192163&view=diff
==============================================================================
--- lld/trunk/lib/Core/LinkingContext.cpp (original)
+++ lld/trunk/lib/Core/LinkingContext.cpp Mon Oct  7 22:59:45 2013
@@ -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);
 }
 

Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=192163&r1=192162&r2=192163&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Mon Oct  7 22:59:45 2013
@@ -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);





More information about the llvm-commits mailing list