Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-09 Thread Renato Golin via cfe-commits
rengolin closed this revision. rengolin added a comment. r252463 Repository: rL LLVM http://reviews.llvm.org/D14184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-09 Thread Renato Golin via cfe-commits
rengolin accepted this revision. rengolin added a comment. This revision is now accepted and ready to land. LGTM, thanks! Repository: rL LLVM http://reviews.llvm.org/D14184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-06 Thread Vinicius Tinti via cfe-commits
tinti marked 6 inline comments as done. Comment at: lib/Driver/Tools.cpp:3415 @@ -3414,1 +3414,3 @@ + if (Arg *A = Args.getLastArg(options::OPT_meabi)) { +CmdArgs.push_back("-meabi"); Good point! Fixed. Comment at: lib/Frontend/CompilerInv

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-06 Thread Vinicius Tinti via cfe-commits
tinti set the repository for this revision to rL LLVM. tinti updated this revision to Diff 39596. tinti marked an inline comment as done. tinti added a comment. - Add test for error check - Change StringSwitch to use lllvm::EABI type Repository: rL LLVM http://reviews.llvm.org/D14184 Files:

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-06 Thread Vinicius Tinti via cfe-commits
tinti removed rL LLVM as the repository for this revision. tinti updated this revision to Diff 39579. http://reviews.llvm.org/D14184 Files: include/clang/Driver/Options.td include/clang/Frontend/CodeGenOptions.h lib/CodeGen/BackendUtil.cpp lib/Driver/Tools.cpp lib/Frontend/CompilerInvoc

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-05 Thread Renato Golin via cfe-commits
rengolin added inline comments. Comment at: lib/Driver/Tools.cpp:3415 @@ -3414,1 +3414,3 @@ + CmdArgs.push_back("-meabi"); + if (Arg *A = Args.getLastArg(options::OPT_meabi)) Shouldn't we only add the option if it was used in the command line? ===

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-04 Thread Vinicius Tinti via cfe-commits
tinti marked 2 inline comments as done. Comment at: lib/Frontend/CompilerInvocation.cpp:459 @@ +458,3 @@ +StringRef Value = A->getValue(); +bool Valid = llvm::StringSwitch(Value) + .Case("default", true) This part of the code does not i

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-04 Thread Vinicius Tinti via cfe-commits
tinti updated this revision to Diff 39304. tinti added a comment. Clang format. Repository: rL LLVM http://reviews.llvm.org/D14184 Files: include/clang/Driver/Options.td include/clang/Frontend/CodeGenOptions.h lib/CodeGen/BackendUtil.cpp lib/Driver/Tools.cpp lib/Frontend/CompilerIn

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-03 Thread Vinicius Tinti via cfe-commits
tinti set the repository for this revision to rL LLVM. tinti updated this revision to Diff 39108. tinti added a comment. - Clang format code. - Update eabi names to match new LLVM patch. Repository: rL LLVM http://reviews.llvm.org/D14184 Files: include/clang/Driver/Options.td include/cla

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-11-03 Thread Renato Golin via cfe-commits
rengolin added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:458 @@ +457,3 @@ +StringRef Value = A->getValue(); +bool Valid = llvm::StringSwitch(Value) + .Case("default", true) tinti wrote: > tinti wrote: > > compnerd wrote: > > > I

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-10-30 Thread Vinicius Tinti via cfe-commits
tinti added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:458 @@ +457,3 @@ +StringRef Value = A->getValue(); +bool Valid = llvm::StringSwitch(Value) + .Case("default", true) tinti wrote: > compnerd wrote: > > If `llvm::EABI::EABIVer

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-10-30 Thread Vinicius Tinti via cfe-commits
tinti added inline comments. Comment at: lib/CodeGen/BackendUtil.cpp:524 @@ +523,3 @@ + .Case("5", llvm::EABI::Eabi5) + .Case("gnu", llvm::EABI::Gnu) + .Default(llvm::EABI::Default); compnerd wrote: > I'd really rather see this written in the LLVM

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-10-30 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. This looks like what I had in mind wrt use of `-meabi`. Comment at: lib/CodeGen/BackendUtil.cpp:524 @@ +523,3 @@ + .Case("5", llvm::EABI::Eabi5) + .Case("gnu", llvm::EABI::Gnu) + .Default(llvm::EABI::Default); I'd reall

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-10-30 Thread Vinicius Tinti via cfe-commits
tinti removed rL LLVM as the repository for this revision. tinti updated this revision to Diff 38803. tinti added a comment. Add context http://reviews.llvm.org/D14184 Files: include/clang/Driver/Options.td include/clang/Frontend/CodeGenOptions.h lib/CodeGen/BackendUtil.cpp lib/Driver/T

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-10-30 Thread Renato Golin via cfe-commits
rengolin added reviewers: jroelofs, t.p.northover. rengolin added subscribers: jroelofs, t.p.northover. rengolin added a comment. You forgot to add the context. It makes a big difference in the driver code. :) But overall, looks good to me. @jroelofs @compnerd @t.p.northover, can you see anythin