Don't convert object_error's enum to and from int.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 18 Jun 2013 13:30:31 +0000 (13:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 18 Jun 2013 13:30:31 +0000 (13:30 +0000)
commit79ac9c8402d4113d42ff2d713c7acdfa800d2397
tree9e2c7d7c931ddf6241f21074bb67c202a8a3961e
parentbeb920fce6ccc89b4735f280f94cb8c227f4ef5e
Don't convert object_error's enum to and from int.

This allows the compiler to see the enum and warn about it. While in here,
fix a switch to not use a default and fix style violations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184186 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/Error.h
lib/Object/Error.cpp