search for: dash_o_option

Displaying 8 results from an estimated 8 matches for "dash_o_option".

2013 Aug 14
3
[LLVMdev] raw_ostream behavior
Hi Dan, lld takes a -emit-yaml option, which emits the intermediate representation(atoms) in YAML form. By default output goes to stdout, the user can control it by using the -o option too. The way its handled is, similiar to this piece of pseudo-code if (dash_o_option) outputFile = dash_o_option->value() else outputFile = "-" When lld tries to mix things that go to stdout using llvm::outs() and -emit-yaml, it starts to get this error. If there is a restriction like this, possibly it has to be mentioned somewhere for usecases (or) raw_fd...
2013 Aug 14
5
[LLVMdev] raw_ostream behavior
...ml option, which emits the intermediate >> representation(atoms) in YAML form. >> >> By default output goes to stdout, the user can control it by using the -o >> option too. >> >> The way its handled is, similiar to this piece of pseudo-code >> >> if (dash_o_option) >> outputFile = dash_o_option->value() >> else >> outputFile = "-" >> >> When lld tries to mix things that go to stdout using llvm::outs() and >> -emit-yaml, it starts to get this error. >> >> If there is a restriction like this...
2013 Aug 14
0
[LLVMdev] raw_ostream behavior
..., > > lld takes a -emit-yaml option, which emits the intermediate > representation(atoms) in YAML form. > > By default output goes to stdout, the user can control it by using the -o > option too. > > The way its handled is, similiar to this piece of pseudo-code > > if (dash_o_option) > outputFile = dash_o_option->value() > else > outputFile = "-" > > When lld tries to mix things that go to stdout using llvm::outs() and > -emit-yaml, it starts to get this error. > > If there is a restriction like this, possibly it has to be mentioned...
2013 Aug 14
0
[LLVMdev] raw_ostream behavior
...mediate >>> representation(atoms) in YAML form. >>> >>> By default output goes to stdout, the user can control it by using the -o >>> option too. >>> >>> The way its handled is, similiar to this piece of pseudo-code >>> >>> if (dash_o_option) >>> outputFile = dash_o_option->value() >>> else >>> outputFile = "-" >>> >>> When lld tries to mix things that go to stdout using llvm::outs() and >>> -emit-yaml, it starts to get this error. >>> >>> If...
2013 Aug 14
0
[LLVMdev] raw_ostream behavior
The high-level answer is that library code shouldn't hardcode output paths, including "-" and including using llvm::outs(). Library code should (in general) instead accept an ostream in its API and write to wherever it is being asked to write. If this is followed, the only place in any program using llvm::outs() is code which is not part of a "library" -- i.e. it is the
2013 Aug 14
0
[LLVMdev] raw_ostream behavior
...iate >>> representation(atoms) in YAML form. >>> >>> By default output goes to stdout, the user can control it by using the -o >>> option too. >>> >>> The way its handled is, similiar to this piece of pseudo-code >>> >>> if (dash_o_option) >>> outputFile = dash_o_option->value() >>> else >>> outputFile = "-" >>> >>> When lld tries to mix things that go to stdout using llvm::outs() and >>> -emit-yaml, it starts to get this error. >>> >>> If...
2013 Aug 14
2
[LLVMdev] raw_ostream behavior
Hi, When I run the below example, it results in :- hello world LLVM ERROR: IO failure on output stream. Testcase :- #include <llvm/Support/raw_ostream.h> int fn() { std::string errorInfo; llvm::raw_fd_ostream out("-", errorInfo); out << "world\n"; return 0; } int main(int argc, char **argv) { llvm::outs() << "hello\n"; fn();
2013 Aug 14
1
[LLVMdev] raw_ostream behavior
...t; > lld takes a -emit-yaml option, which emits the intermediate > representation(atoms) in YAML form. > > By default output goes to stdout, the user can control it by using the -o > option too. > > The way its handled is, similiar to this piece of pseudo-code > > if (dash_o_option) > outputFile = dash_o_option->value() > else > outputFile = "-" > > When lld tries to mix things that go to stdout using llvm::outs() and > -emit-yaml, it starts to get this error. > > If there is a restriction like this, possibly it has to be mentio...