[cfe-dev] Where to declare CharUnits wrapper of RoundUpToAlignment()?

Daniel Dunbar daniel at zuster.org
Wed Jan 27 14:16:34 CST 2010


Why not make it part of CharUnits?

 - Daniel

On Wed, Jan 27, 2010 at 11:36 AM, Ken Dyck <Ken.Dyck at onsemi.com> wrote:
> I'd like to add a wrapper function for the llvm::RoundUpToAlignment()
> function. It would take and return values in CharUnits. Any
> recommendations for which header file should hold its declaration?
>
> All of the calls to llvm::RoundUpToAlignment() occur in the CodeGen and
> AST libraries, so somewhere in AST seems appropriate. But where? In
> ASTContext.h, maybe? Or would a new ASTExtras.h be more appropriate?
>
> -Ken
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>


More information about the cfe-dev mailing list