Skip to content
Snippets Groups Projects
  • Saleem Abdulrasool's avatar
    e81307a7
    Driver: parse -mcmodel earlier · e81307a7
    Saleem Abdulrasool authored
    This addresses an existing FIXME item in the driver.  The code model flag was
    parsed in the actual tool rather than in the driver.  This was problematic since
    the value may be invalid.  In that case, we would silently treat it as a default
    value in non-assert builds, and abort in assert builds.  Add a check in the
    driver to validate that the value being passed is valid, and if not provide a
    proper error message.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208275 91177308-0d34-0410-b5e6-96231b3b80d8
    e81307a7
    History
    Driver: parse -mcmodel earlier
    Saleem Abdulrasool authored
    This addresses an existing FIXME item in the driver.  The code model flag was
    parsed in the actual tool rather than in the driver.  This was problematic since
    the value may be invalid.  In that case, we would silently treat it as a default
    value in non-assert builds, and abort in assert builds.  Add a check in the
    driver to validate that the value being passed is valid, and if not provide a
    proper error message.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208275 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.