[mips] Hoist common functionality into a new function.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Wed, 26 Mar 2014 14:26:27 +0000 (14:26 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Wed, 26 Mar 2014 14:26:27 +0000 (14:26 +0000)
commit637e1da9e980bc9f12f4fb7cae75a4010fbc8dfe
tree70e0544a9d227967b460e18b2de3e49e21308e0b
parent58839f43de03c894c3398ba2f7429c3ba82c96c1
[mips] Hoist common functionality into a new function.

Given that we support multiple directives that enable a particular feature
(e.g. '.set mips16'), it's best to hoist that code into a new function
so that we don't repeat the same pattern w.r.t parsing and handling error cases.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204811 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp