[llvm-commits] [llvm] r121385 - /llvm/trunk/utils/FileUpdate/FileUpdate.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Dec 9 10:04:00 PST 2010


On Dec 9, 2010, at 9:48 AM, Michael J. Spencer wrote:

> Author: mspencer
> Date: Thu Dec  9 11:48:55 2010
> New Revision: 121385
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=121385&view=rev
> Log:
> Missed FileUpdate because CMake doesn't build it yet :(.

You also broke LTO:

/Volumes/Data/g/llvm/tools/lto/LTOModule.cpp:59:26: error: no matching function for call to 'getFile'
  MemoryBuffer *buffer = MemoryBuffer::getFile(path);
                         ^~~~~~~~~~~~~~~~~~~~~
In file included from /Volumes/Data/g/llvm/tools/lto/LTOModule.cpp:24:
/Volumes/Data/g/llvm/include/llvm/Support/MemoryBuffer.h:64:24: note: candidate function not viable: requires at least 2 arguments, but 1 was provided
  static MemoryBuffer *getFile(StringRef Filename, error_code &ec,
                       ^
/Volumes/Data/g/llvm/include/llvm/Support/MemoryBuffer.h:66:24: note: candidate function not viable: requires at least 2 arguments, but 1 was provided
  static MemoryBuffer *getFile(const char *Filename, error_code &ec,
                       ^
/Volumes/Data/g/llvm/tools/lto/LTOModule.cpp:81:34: error: no matching function for call to 'getFile'
  OwningPtr<MemoryBuffer> buffer(MemoryBuffer::getFile(path, &errMsg));
                                 ^~~~~~~~~~~~~~~~~~~~~
In file included from /Volumes/Data/g/llvm/tools/lto/LTOModule.cpp:24:
/Volumes/Data/g/llvm/include/llvm/Support/MemoryBuffer.h:66:24: note: candidate function not viable: no known conversion from 'std::string *' (aka 'basic_string<char> *') to 'llvm::error_code &' for 2nd argument
  static MemoryBuffer *getFile(const char *Filename, error_code &ec,
                       ^
/Volumes/Data/g/llvm/include/llvm/Support/MemoryBuffer.h:64:24: note: candidate function not viable: no known conversion from 'std::string *' (aka 'basic_string<char> *') to 'llvm::error_code &' for 2nd argument
  static MemoryBuffer *getFile(StringRef Filename, error_code &ec,
                       ^
make[4]: Nothing to be done for `all'.
2 errors generated.
make[2]: *** [/Volumes/Data/b/tools/lto/Release+Asserts/LTOModule.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/Volumes/Data/g/llvm/tools/lto/LTOCodeGenerator.cpp:226:29: error: no matching function for call to 'getFile'
        _nativeObjectFile = MemoryBuffer::getFile(uniqueObjStr.c_str(),&errMsg);
                            ^~~~~~~~~~~~~~~~~~~~~
In file included from /Volumes/Data/g/llvm/tools/lto/LTOCodeGenerator.cpp:39:
/Volumes/Data/g/llvm/include/llvm/Support/MemoryBuffer.h:66:24: note: candidate function not viable: no known conversion from 'std::string *' (aka 'basic_string<char> *') to 'llvm::error_code &' for 2nd argument
  static MemoryBuffer *getFile(const char *Filename, error_code &ec,
                       ^
/Volumes/Data/g/llvm/include/llvm/Support/MemoryBuffer.h:64:24: note: candidate function not viable: no known conversion from 'std::string *' (aka 'basic_string<char> *') to 'llvm::error_code &' for 2nd argument
  static MemoryBuffer *getFile(StringRef Filename, error_code &ec,
                       ^
1 error generated.






More information about the llvm-commits mailing list