diff options
author | Filipe Cabecinhas <me@filcab.net> | 2012-05-22 14:45:44 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2012-05-22 14:45:44 +0000 |
commit | 6f970e845879f88a42741431696234956879e194 (patch) | |
tree | 9a276e5440b1a59fb5a6192b420d3264fbefa9ab | |
parent | f6985e3ab9d0ebd3128209c1b4bdd6f5dc817b52 (diff) | |
download | bcm5719-llvm-6f970e845879f88a42741431696234956879e194.tar.gz bcm5719-llvm-6f970e845879f88a42741431696234956879e194.zip |
Remove some compilation warnings.
llvm-svn: 157253
-rw-r--r-- | lld/include/lld/Core/Atom.h | 2 | ||||
-rw-r--r-- | lld/lib/Core/YamlWriter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lld/include/lld/Core/Atom.h b/lld/include/lld/Core/Atom.h index 0a0edc6cea1..ecc66b46294 100644 --- a/lld/include/lld/Core/Atom.h +++ b/lld/include/lld/Core/Atom.h @@ -50,7 +50,7 @@ public: /// 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; } diff --git a/lld/lib/Core/YamlWriter.cpp b/lld/lib/Core/YamlWriter.cpp index 03539c99914..f3b348282b8 100644 --- a/lld/lib/Core/YamlWriter.cpp +++ b/lld/lib/Core/YamlWriter.cpp @@ -423,7 +423,7 @@ public: 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]; |