nitesh.jain added inline comments.

================
Comment at: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp:1625-1626
@@ -1624,4 +1624,4 @@
 
                 if (arch_spec.GetMachine() == llvm::Triple::mips || 
arch_spec.GetMachine() == llvm::Triple::mipsel
                     || arch_spec.GetMachine() == llvm::Triple::mips64 || 
arch_spec.GetMachine() == llvm::Triple::mips64el)
                 {
----------------
clayborg wrote:
> Should we add a function like:
> 
> ```
> bool ArchSpec::IsMIPS() const;
> ```
> 
> Every patch I see for MIPS has these same four machine checks. If we add 
> another we will need to update all places that do this..
I agree with you. We need to add above function so it will be easy for future 
updates. I will update the diff as per suggestion


Repository:
  rL LLVM

http://reviews.llvm.org/D18858



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to