[llvm-commits] trying to build lld
Marshall Clow
mclow.lists at gmail.com
Wed Mar 28 10:31:56 PDT 2012
When I try to build TOT lld, I get an error:
> [100%] Building CXX object tools/lld-core/CMakeFiles/lld-core.dir/lld-core.cpp.o
> /Volumes/EyeFive/Marshall/Sources/LLVM/lld/tools/lld-core/lld-core.cpp:126:35: error: implicit instantiation of undefined template
> 'llvm::ArrayRef<unsigned char>'
> virtual llvm::ArrayRef<uint8_t> rawContent() const {
> ^
> /Volumes/EyeFive/Marshall/Sources/LLVM/lld/include/lld/Core/DefinedAtom.h:20:9: note: template is declared here
> class ArrayRef;
> ^
>
Adding an include for <ArrayRef.h> fixes the problem:
Index: tools/lld-core/lld-core.cpp
===================================================================
--- tools/lld-core/lld-core.cpp (revision 153576)
+++ tools/lld-core/lld-core.cpp (working copy)
@@ -21,6 +21,7 @@
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/CommandLine.h"
Ok to commit?
-- Marshall
Marshall Clow Idio Software <mailto:mclow.lists at gmail.com>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
-- Yu Suzuki
More information about the llvm-commits
mailing list