Displaying 7 results from an estimated 7 matches for "changestdouttobinary".
2008 Jun 04
1
[LLVMdev] Standard output binary mode on windows
...input.ll > out.bc", because out.bc
is then most likely corrupted.
This is an old story, fixed a while ago:
http://llvm.org/bugs/show_bug.cgi?id=787
And here is the thread on LLVMDev:
http://thread.gmane.org/gmane.comp.compilers.llvm.devel/4320/focus=4322
Unfortunately, this bug is back. ChangeStdoutToBinary is never called in
the current LLVM tree. I guess the call was lost during the
Bytecode->Bitcode transition.
The attached patches fix that by calling ChangeStdoutToBinary in
WriteBitcodeToFile if the output stream is llvm::cout. This works for
all the LLVM tools, because they use llvm::cout, bu...
2006 Jun 24
2
[LLVMdev] LLVM build error
.../llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):
In function `llvm::WriteBytecodeToFile(llvm::Module const*,
std::basic_ostream<char, std::char_traits<char> >&, bool)':
/home/ll/repositories/cvs/llvm/lib/Bytecode/Writer/Writer.cpp:1224:
undefined reference to `llvm::sys::Program::ChangeStdoutToBinary()'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):
In function `StatisticBase':
/home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:37:
undefined reference to `vtable for llvm::StatisticBase'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMB...
2009 Jul 17
1
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
...4
--- a/include/llvm/System/Program.h
+++ b/include/llvm/System/Program.h
@@ -15,6 +15,7 @@
#define LLVM_SYSTEM_PROGRAM_H
#include "llvm/System/Path.h"
+#include "llvm/Config/config.h"
namespace llvm {
namespace sys {
@@ -88,6 +89,12 @@ namespace sys {
static bool ChangeStdoutToBinary();
/// @}
+#ifdef LLVM_ON_WINDOWS
+ typedef unsigned ProcessID;
+#else
+ typedef int ProcessID;
+#endif
+
/// This function executes the program using the \p arguments provided and
/// waits for the program to exit. This function will block the current
/// program unt...
2008 Jun 06
0
[LLVMdev] Standard output binary mode on windows
Hello, Julien
> Unfortunately, this bug is back. ChangeStdoutToBinary is never called in
> the current LLVM tree. I guess the call was lost during the
> Bytecode->Bitcode transition.
Applied, thanks!
--
With best regards, Anton Korobeynikov.
Faculty of Mathematics & Mechanics, Saint Petersburg State University.
2006 Jun 24
0
[LLVMdev] LLVM build error
...LVMBCWriter.a(Writer.o):
> In function `llvm::WriteBytecodeToFile(llvm::Module const*,
> std::basic_ostream<char, std::char_traits<char> >&, bool)':
> /home/ll/repositories/cvs/llvm/lib/Bytecode/Writer/Writer.cpp:1224:
> undefined reference to `llvm::sys::Program::ChangeStdoutToBinary()'
> /home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):
> In function `StatisticBase':
> /home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:37:
> undefined reference to `vtable for llvm::StatisticBase'
> /home/ll/programs/source/scm/cv...
2009 Jul 17
0
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
...nclude/llvm/System/Program.h
> @@ -15,6 +15,7 @@
> #define LLVM_SYSTEM_PROGRAM_H
>
> #include "llvm/System/Path.h"
> +#include "llvm/Config/config.h"
>
> namespace llvm {
> namespace sys {
> @@ -88,6 +89,12 @@ namespace sys {
> static bool ChangeStdoutToBinary();
> /// @}
>
> +#ifdef LLVM_ON_WINDOWS
> + typedef unsigned ProcessID;
> +#else
> + typedef int ProcessID;
> +#endif
> +
> /// This function executes the program using the \p arguments provided and
> /// waits for the program to exit. This function...
2009 Jul 17
3
[LLVMdev] [PATCH 1/2] Trailing whitespace.
---
include/llvm/System/Program.h | 8 ++++----
lib/System/Unix/Program.inc | 30 +++++++++++++++---------------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h
index 49de7cf..14f9e9e 100644
--- a/include/llvm/System/Program.h
+++ b/include/llvm/System/Program.h
@@ -97,12 +97,12 @@ namespace sys {
///