[llvm-commits] [lld] r157253 - in /lld/trunk: include/lld/Core/Atom.h lib/Core/YamlWriter.cpp
Filipe Cabecinhas
me at filcab.net
Tue May 22 07:45:44 PDT 2012
Author: filcab
Date: Tue May 22 09:45:44 2012
New Revision: 157253
URL: http://llvm.org/viewvc/llvm-project?rev=157253&view=rev
Log:
Remove some compilation warnings.
Modified:
lld/trunk/include/lld/Core/Atom.h
lld/trunk/lib/Core/YamlWriter.cpp
Modified: lld/trunk/include/lld/Core/Atom.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Atom.h?rev=157253&r1=157252&r2=157253&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Atom.h (original)
+++ lld/trunk/include/lld/Core/Atom.h Tue May 22 09:45:44 2012
@@ -50,7 +50,7 @@
/// definition - Whether this atom is a definition or represents an undefined
/// symbol.
- Definition definition() const { return _definition; };
+ Definition definition() const { return _definition; }
static inline bool classof(const Atom *a) { return true; }
Modified: lld/trunk/lib/Core/YamlWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/YamlWriter.cpp?rev=157253&r1=157252&r2=157253&view=diff
==============================================================================
--- lld/trunk/lib/Core/YamlWriter.cpp (original)
+++ lld/trunk/lib/Core/YamlWriter.cpp Tue May 22 09:45:44 2012
@@ -423,7 +423,7 @@
private:
// return a string of the correct number of spaces to align value
- const char* spacePadding(int keyLen) {
+ const char* spacePadding(size_t keyLen) {
const char* spaces = " ";
assert(strlen(spaces) > keyLen);
return &spaces[keyLen];
More information about the llvm-commits
mailing list