[Compiler] ModuleLoader: Add function "assert".

Authored by akreuzkamp.

Description

[Compiler] ModuleLoader: Add function "assert".

Adds an assert method, that checks a condition and throws an error
if not met. It's now used instead of writing an if condition and
throwing an error manually, if met. This assert function is not
generic, but ModuleLoader specific to save as much code as possible.

Details

Committed
akreuzkampSep 8 2015, 10:37 AM
Differential Revision
D335: [Compiler] Implement module loading.
Parents
R18:7e395de32530: [Compiler] ModuleLoader: Use AST:: explicitly.
Branches
Unknown
Tags
Unknown