[LLVMdev] LLD: make atoms in files non-const

Shankar Easwaran shankare at codeaurora.org
Wed Apr 8 10:59:27 PDT 2015


On 4/7/2015 5:58 PM, Rui Ueyama wrote:
> Currently, member functions like File::defined() return an iterator for
> const atoms. But we don't actually treat atoms as consts -- we updates
> atoms in many places including the core resolver.
>
> We have too many const_casts in our code. It just doesn't make sense.
>
> I'm making a change to make atoms non-const. Please hit reply if you have
> any concerns.
>
Returning a non const iterator would be a nice change.

Shankar Easwaran

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation




More information about the llvm-dev mailing list